Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending registration verification e-mails using Authlogic?

Tags:

Is there any way I can get authlogic to send email to my subscribers after they have registered so that they can confirm their account?

like image 222
nacho10f Avatar asked Nov 26 '09 22:11

nacho10f


1 Answers

It seems like this Blogpost describes what you want to achieve.

The user model uses a perishable_token which is used for a verification url sent to the user's mail adress upon account creation. When the user clicks the url in the mail it triggers an action that sets the corresponding user model to verified

Basically you need to validate UserSessions depending on whether the corresponding User is already verified.

See:

like image 179
Lennart Avatar answered Oct 12 '22 08:10

Lennart