Creating user in 5.7
PermalinkHow to i create user when UserInfo->add() and UserInfo->register are deprecated.
I need this to make data migration script to move users from another platform to concrete5
Thanks for reading.
I'm developing an Add-On which imports/exports site members.... will be ready soon
Had the exact same problem today. Here's what I did:
where $data is exactly what comes from the register form:
This is just an example but this is how this $data array should look like. Remark that the 'akID' entries are User Attributes set to "Show on Registration Form."
For saving User Attributes I found the following solution (maybe there's a better one, I'm open for feedback!!)
First, get all the attributes required upon Registration:
Then:
See the $data array above.
Don't forget to reindex by doing: