diff --git a/app/views/passwords_mailer/reset.html.erb b/app/views/passwords_mailer/reset.html.erb index 1b09154..3cabe23 100644 --- a/app/views/passwords_mailer/reset.html.erb +++ b/app/views/passwords_mailer/reset.html.erb @@ -1,6 +1,6 @@
You can reset your password on - <%= link_to "this password reset page", edit_password_url(@user.password_reset_token) %>. + <%= link_to "this password reset page", edit_password_url(@user.generate_token_for(:password_reset)) %>. - This link will expire in <%= distance_of_time_in_words(0, @user.password_reset_token_expires_in) %>. + This link will expire in 1 hour.
diff --git a/app/views/passwords_mailer/reset.text.erb b/app/views/passwords_mailer/reset.text.erb index aecee82..43ec762 100644 --- a/app/views/passwords_mailer/reset.text.erb +++ b/app/views/passwords_mailer/reset.text.erb @@ -1,4 +1,4 @@ You can reset your password on -<%= edit_password_url(@user.password_reset_token) %> +<%= edit_password_url(@user.generate_token_for(:password_reset)) %> -This link will expire in <%= distance_of_time_in_words(0, @user.password_reset_token_expires_in) %>. +This link will expire in 1 hour.