Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't render session#new if invalid login. redirect to it.

This is better since this is an engine embedded in other apps. Will most likely need to pass a flag to note the invalid login.
  • Loading branch information...
commit de3111584f8607950164c5f20f2133537156d9bc 1 parent 29df42a
jrwest authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  app/controllers/authr/sessions_controller.rb
View
3  app/controllers/authr/sessions_controller.rb
@@ -10,8 +10,7 @@ def create
session[:account_login_time] = Time.now
redirect_to '/'
else
- @account = Account.new
- render :action => :new
+ redirect_to new_session_path
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.