mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-03 13:53:21 +00:00
fix: Remove previous tokens from database
Prevent some panics, accidental soft-logouts instead of hard ones, and prevents stale tokens revoking sessions.
This commit is contained in:
2 files changed
+31
-8
No files matched your search
@@ -92,6 +92,7 @@ impl super::Service {
|
||||
self.db.token_userdeviceid.remove(&old_token);
|
||||
self.db.userdeviceid_tokenexpires.del(userdeviceid);
|
||||
}
|
||||
self.db.userdeviceid_previoustoken.del(userdeviceid);
|
||||
|
||||
// Remove todevice events
|
||||
let prefix = (user_id, device_id, Interfix);
|
||||
|
||||
Reference in new issue
Block a user