Skip to content

Instantly share code, notes, and snippets.

View edooan's full-sized avatar

Edward Andres Parra Gonzalez edooan

View GitHub Profile
@edooan
edooan / Adding 'Forgot Password' to login page.md
Created August 29, 2020 04:03 — forked from wendygwo/Adding 'Forgot Password' to login page.md
How to add 'Forgot password' to a Rails app that's using bcrypt for authentication

Credit:

All the steps below came from watching the Railscast below:

http://railscasts.com/episodes/274-remember-me-reset-password

The steps below assumes that your app already has a user and user authentication set up.

  • Add to app/views/sessions/new.html.erb file
<p><%= link_to 'Forgot password?', new_password_reset_path %></p>