From: Tom Hughes Date: Fri, 26 Feb 2010 15:50:40 +0000 (+0000) Subject: Redirect back to the login page after a successful request to X-Git-Tag: live~6389^2~9 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/30c47f4ac491f5cfa39e281dbb8b9a0d1916eaca Redirect back to the login page after a successful request to send a lost password mail. Closes #1699. --- 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