Completing password reset

This commit is contained in:
Mike Slemmer 2012-12-27 23:30:03 -08:00
parent 9db67b98c8
commit 9b443f08f7
3 changed files with 7 additions and 0 deletions

View File

@ -3,5 +3,8 @@
Reset Password! <%= @user.email %>
<br/>
Here is the token: <%= @user.reset_password_token %>
<br/>
Here is the URL to visit where you can type in your new password:
<%= "/reset_password_token?token=#{@user.reset_password_token}&email=#{CGI.escape(@user.email)}" %>
</body>
</html>

View File

@ -1,2 +1,4 @@
Reset Password! <%= @user.email %>
Here is the token: <%= @user.reset_password_token %>
Here is the URL to visit where you can type in your new password:
<%= "/reset_password_token?token=#{@user.reset_password_token}&email=#{CGI.escape(@user.email)}" %>

View File

@ -212,6 +212,8 @@ module JamRuby
user.save
UserMailer.password_reset(user).deliver
user
end
def self.band_index(user_id)