Added last login column to users table.

This commit is contained in:
DebaucheryLibrarian
2022-04-04 00:23:37 +02:00
parent a586413240
commit 153f28c494
4 changed files with 28 additions and 29 deletions

View File

@@ -34,6 +34,10 @@ async function login(credentials) {
await verifyPassword(credentials.password, user.password);
await knex('users')
.update('last_login', 'NOW()')
.where('id', user.id);
return curateUser(user);
}