Completing password reset
This commit is contained in:
parent
9db67b98c8
commit
9b443f08f7
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)}" %>
|
||||
|
|
|
|||
|
|
@ -212,6 +212,8 @@ module JamRuby
|
|||
user.save
|
||||
|
||||
UserMailer.password_reset(user).deliver
|
||||
|
||||
user
|
||||
end
|
||||
|
||||
def self.band_index(user_id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue