You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the docs (linked below) under guest users, it says you can create a guest by passing the 'is_guest' => true" - is this the create method because none is shown in the example given. You also get a validation error because a first_name is required. Is it possible to bypass this?
It also states that you can convert a guest user to a registered user by providing password and confirmation along with the email address to the create method, and you won't receive a "email already taken" error - but this doesn't seem to be the case.
I can get round this by getting the user, running the convertToRegistered() method setting the password, and name manually.
On that, the convertToRegistered() method keeps the guest group as the primary group - shouldn't this get updated to the Registered group at this point?
The text was updated successfully, but these errors were encountered:
Everything you've mentioned here is correct. The first_name attribute is required in this version, so populate it with "Guest" or something or remove it from the validation rules (not recommended).
This has been fixed, docs and tests have been updated in 9a0d5eb
Thanks! Let me know if you spot any other inconsistencies.
Sorry to bring this one up again. The frontend Register component still includes the unique validation on the email address. So trying to register an account, with an email that's previously been used for a guest fails when using this component.
In the docs (linked below) under guest users, it says you can create a guest by passing the
'is_guest' => true"
- is this the create method because none is shown in the example given. You also get a validation error because afirst_name
is required. Is it possible to bypass this?https://github.com/rainlab/user-plugin/blob/master/docs/auth-manager.md
It also states that you can convert a guest user to a registered user by providing password and confirmation along with the email address to the create method, and you won't receive a "email already taken" error - but this doesn't seem to be the case.
I can get round this by getting the user, running the
convertToRegistered()
method setting the password, and name manually.On that, the
convertToRegistered()
method keeps the guest group as the primary group - shouldn't this get updated to theRegistered
group at this point?The text was updated successfully, but these errors were encountered: