Closed Ser5 closed 9 years ago
register
now returns the model on success, false
on failure in 85023c3.
As far as the groups
and permissions
creation on the user registration, I'm honestly not sure where that part in the docs came from. I don't see functionality that was designed to handle that.
The functionality to add these was added in release 2.6.1. Closing this issue.
If I use following code:
var_dump()
vardumps me nothing. If I uncomment the line withaddGroup()
method,var_dump()
gives me right results.Also please note that
Gatekeeper::register()
doesn't return the id of newly created user, so instead ofGatekeeper::findUserById($userId)
I have to use somewhat inconvenientGatekeeper::findUserByUsername($userData['email_address'])
Note 2: http://gatekeeper-auth.readthedocs.org/en/latest/users/#creating-users
should be changed to