From 30c47f4ac491f5cfa39e281dbb8b9a0d1916eaca Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 26 Feb 2010 15:50:40 +0000 Subject: [PATCH] Redirect back to the login page after a successful request to send a lost password mail. Closes #1699. --- app/controllers/user_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 829d918c8..430e56cb0 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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 -- 2.43.2