Redirect back to the login page after a successful request to
send a lost password mail. Closes #1699.
This commit is contained in:
parent
2df3a8d2e2
commit
30c47f4ac4
1 changed files with 2 additions and 1 deletions
|
@ -112,7 +112,8 @@ class UserController < ApplicationController
|
|||
if user
|
||||
token = user.tokens.create
|
||||
Notifier.deliver_lost_password(user, token)
|
||||
flash.now[:notice] = t 'user.lost_password.notice email on way'
|
||||
flash[:notice] = t 'user.lost_password.notice email on way'
|
||||
redirect_to :action => 'login'
|
||||
else
|
||||
flash.now[:error] = t 'user.lost_password.notice email cannot find'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue