Redirect back to the login page after a successful request to

send a lost password mail. Closes #1699.
This commit is contained in:
Tom Hughes 2010-02-26 15:50:40 +00:00
parent 2df3a8d2e2
commit 30c47f4ac4

View file

@ -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