X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/2df3a8d2e25460b1eef06c9189f2677833cbdcac..30c47f4ac491f5cfa39e281dbb8b9a0d1916eaca:/app/controllers/user_controller.rb 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