]> git.openstreetmap.org Git - rails.git/commitdiff
Redirect back to the login page after a successful request to
authorTom Hughes <tom@compton.nu>
Fri, 26 Feb 2010 15:50:40 +0000 (15:50 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 26 Feb 2010 15:50:40 +0000 (15:50 +0000)
send a lost password mail. Closes #1699.

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