mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-05 09:07:26 +08:00
[F] Set last login time in login
This commit is contained in:
@@ -109,6 +109,9 @@ class UserRegistrar(
|
||||
// Generate JWT token
|
||||
val token = jwt.gen(user)
|
||||
|
||||
// Set last login time
|
||||
async { userRepo.save(user.apply { lastLogin = millis() }) }
|
||||
|
||||
return mapOf("token" to token)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user