PHP-Auth icon indicating copy to clipboard operation
PHP-Auth copied to clipboard

Disable email verification

Open binoculars88 opened this issue 6 years ago • 3 comments
trafficstars

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.

binoculars88 avatar May 12 '19 12:05 binoculars88

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.

ocram avatar May 12 '19 17:05 ocram

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?

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.

binoculars88 avatar May 12 '19 18:05 binoculars88

Pls, where exactly I'm I to make the changes

Basmock avatar Oct 04 '22 17:10 Basmock