Skip to content

Commit

Permalink
should use post-redirect-get for login
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed Mar 10, 2010
1 parent 5e13284 commit 0334ce4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/admin_controller.rb
Expand Up @@ -11,7 +11,8 @@ def login
session[:original_uri] = nil
redirect_to(uri || {:action => "index"})
else
flash.now[:notice] = "Invalid user/password combination"
flash[:notice] = "Invalid user/password combination"
redirect_to(:action => "login")
end
end
end
Expand Down

0 comments on commit 0334ce4

Please sign in to comment.