Skip to content

Commit

Permalink
[#633 state:resolved] [#514] hobo_login does not do ajax if login fails
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Feb 21, 2010
1 parent 767f106 commit 08c956b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hobo/lib/hobo/user_controller.rb
Expand Up @@ -70,6 +70,7 @@ def hobo_login(options={})
user = model.authenticate(params[:login], params[:password])
if user.nil?
flash[:error] = options[:failure_notice]
hobo_ajax_response if request.xhr? && !performed?
else
old_user = current_user
self.current_user = user
Expand Down

0 comments on commit 08c956b

Please sign in to comment.