Email verification plugin for rails?

I want to check the user's email address by sending them a confirmation message. Do you know the good Rails plugin they used or saw?

Since I did not see anything good through Google, at that moment I thought:

  • Add a validated logical field to the user model. The default value is false.
  • After the user is added (unverified), combine the email with the salt (secret) and create the sha1 hash file from the email / salt list. The result is a check.
  • Send a welcome / verification email to the user. Email includes a URL that has an email address and confirmation, as GET indicates confirmation of action on my server.
  • The validation action repeats the verification using the attached letter and verifies that the new verification matches that in the URL. If so, then the user's email address is marked as "verified"

You will also be prompted to resend the confirmation email.

Are there any comments about this?

Thanks,

Larry

+4
source share
3 answers

Develop https://github.com/plataformatec/devise

Verification: sends confirmation letters and verifies if the account is verified during login. Recoverable: resets the user password and sends reset commands.

Authlogic https://github.com/binarylogic/authlogic

Also look at this stackoverflow

Email validation in Rails without using existing authentication genes / plugins

Hope this helps!

+4
source

Devise is a terrific stone that can do it with minimal effort.

+2
source

I don’t know the plugin, but the Action Mailer manual covers some of what you want to do: http://guides.rubyonrails.org/action_mailer_basics.html

It should not be too difficult to create a sample guide for your specific use case.

0
source

Source: https://habr.com/ru/post/1303874/


All Articles