Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

nifty_authentication: using flash.now when login is invalid since it …

…doesn't do a redirect afterwards
  • Loading branch information...
commit 5b486315cab9a429c3c51df86ec04819d7a89897 1 parent 7eee9ff
@ryanb ryanb authored
View
2  rails_generators/nifty_authentication/templates/sessions_controller.rb
@@ -9,7 +9,7 @@ def create
flash[:notice] = "Logged in successfully."
redirect_to root_url
else
- flash[:error] = "Invalid login or password."
+ flash.now[:error] = "Invalid login or password."
render :action => 'new'
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.