Permalink
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...
1 parent 29df42a commit de3111584f8607950164c5f20f2133537156d9bc jrwest committed Feb 27, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit de31115

Please sign in to comment.