PHP-Auth
PHP-Auth copied to clipboard
Disable email verification
Hi,
I absolutely love this project!
I was wondering: is there an easy way to disable the email verification feature, and auto sign-in after registration?
Or even better: have the email verification, but allowing users to login anyway + auto-login after registration. That way, users don't have to verify their email address in order to use the app, but they can. Whether or not they do it is valuable information to me so would be awesome to be able to set it up like this.
Thanks for your appreciation!
I was wondering: is there an easy way to disable the email verification feature, and auto sign-in after registration?
Sure, this is possible. The README mentions the first part of this:
If you don’t want to perform email verification, just omit the last parameter to
Auth#register. The new user will be active immediately, then.
The second part would simply be calling Auth#login right after Auth#register – with the same credentials. Does that work for you?
Or even better: have the email verification, but allowing users to login anyway
This is, unfortunately, not possible yet, but we should consider this as an addition in the future. Let’s leave this issue here open until this is implemented.
Sure, this is possible. The README mentions the first part of this:
If you don’t want to perform email verification, just omit the last parameter to
Auth#register. The new user will be active immediately, then.The second part would simply be calling
Auth#loginright afterAuth#register– with the same credentials. Does that work for you?
Works perfectly! Thanks a lot!
Or even better: have the email verification, but allowing users to login anyway
This is, unfortunately, not possible yet, but we should consider this as an addition in the future. Let’s leave this issue here open until this is implemented.
OK, sounds good! Thanks again for this wonderful project.
Pls, where exactly I'm I to make the changes