]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Redirect back to the login page after a successful request to
[rails.git] / app / controllers / user_controller.rb
index 829d918c86e36e7d426c17dbef38b991c9fb138d..430e56cb05c1ae0719d5540874a6e681e721ab94 100644 (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