mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-04 00:38:10 +00:00
Delete old devices when deauthorizing user sessions
This commit is contained in:
parent
93805a5d7b
commit
6027b969f5
2 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,7 @@ fn deauth_user(uuid: String, _token: AdminToken, conn: DbConn) -> EmptyResult {
|
|||
None => err!("User doesn't exist"),
|
||||
};
|
||||
|
||||
Device::delete_all_by_user(&user.uuid, &conn)?;
|
||||
user.reset_security_stamp();
|
||||
|
||||
user.save(&conn)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue