mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 20:12:39 +00:00
fix: clear sessions upon password reset
This commit is contained in:
parent
92868201a3
commit
bf51f48961
@ -202,6 +202,11 @@ class UserRegistrar(
|
|||||||
// Change the password
|
// Change the password
|
||||||
async { userRepo.save(reset.aquaNetUser.apply { pwHash = validator.checkPwHash(password) }) }
|
async { userRepo.save(reset.aquaNetUser.apply { pwHash = validator.checkPwHash(password) }) }
|
||||||
|
|
||||||
|
// Clear all sessions
|
||||||
|
sessionRepo.deleteAll(
|
||||||
|
sessionRepo.findByAquaNetUserAuId(reset.aquaNetUser.auId)
|
||||||
|
)
|
||||||
|
|
||||||
return SUCCESS
|
return SUCCESS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user