Update last login field when validating existing login. Show 25 users in the user list instead of just ten.

This commit is contained in:
Jyri-Petteri Paloposki 2020-10-10 15:50:59 +03:00
parent 318e4a22e4
commit 2d02f2f262
3 changed files with 2 additions and 2 deletions

View file

@ -152,6 +152,7 @@ module LoginSystem
def set_current_user(user)
@user = user
User.update(@user.id, last_login_at: Time.zone.now)
end
# overwrite if you want to have special behavior in case the user is not authorized