Skip to content

Commit

Permalink
feat: PPT-1077 add user login stats (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis authored Dec 4, 2023
1 parent a7e1cad commit 45eddf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/initializers/omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@
else
puts "\n\nWARN: redis client not configured, login event ignored\n"
end
user.update_columns(login_count: user.login_count + 1, last_login: Time.now.to_i)
end

0 comments on commit 45eddf9

Please sign in to comment.