Added last login column to users table.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user