Skip to content
Browse files

Log all login cases

  • Loading branch information...
1 parent 90d09f5 commit 323a3b74eae5146cea5260e583f5e44c72a5164c @rwdaigle committed Oct 9, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/sessions_controller.rb
View
1 app/controllers/sessions_controller.rb
@@ -12,6 +12,7 @@ def logout
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?)
log({ns: self.class, fn: __method__, measure: true, at: 'repeat-login'}, user)
redirect_to search_gists_path

0 comments on commit 323a3b7

Please sign in to comment.
Something went wrong with that request. Please try again.