Creating user in 5.7
Permalink
Hi,
How 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.
How 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.
BTW
I'm developing an Add-On which imports/exports site members.... will be ready soon
I'm developing an Add-On which imports/exports site members.... will be ready soon
Can't wait for your add-on! I've heard its going to be a game changer!
Wow.... Where did u hear that? ;-)
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: