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