Skip to content

Commit

Permalink
fix(omniauth): use correct timestamp recording logins
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Dec 10, 2023
1 parent 45eddf9 commit fc9d241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/omniauth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +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)
user.update_columns(login_count: user.login_count + 1, last_login: Time.now)
end

0 comments on commit fc9d241

Please sign in to comment.