Permalink
Browse files

Fix user login bug

  • Loading branch information...
rwdaigle committed Nov 24, 2012
1 parent 158d462 commit fbb6e04d947f30fca514cf9b2c47d8c2b4abc05c
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/sessions_controller.rb
@@ -9,7 +9,7 @@ def create
user = User.authenticate(request.env['omniauth.auth'])
log_in_user(user.id)
log({ns: self.class, fn: __method__, measure: true, at: 'login'}, user)
- if(user.fetched?)
+ if(user.gists.any?)
log({ns: self.class, fn: __method__, measure: true, at: 'repeat-login'}, user)
redirect_to(request.env['omniauth.origin'] || search_gists_path)
else

0 comments on commit fbb6e04

Please sign in to comment.