mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-28 00:45:49 +03:00
Invalidate sessions when changing password or kdf values
This commit is contained in:
parent
729c9cff41
commit
448e6ac917
1 changed files with 1 additions and 0 deletions
|
@ -121,6 +121,7 @@ impl User {
|
|||
|
||||
pub fn set_password(&mut self, password: &str) {
|
||||
self.password_hash = crypto::hash_password(password.as_bytes(), &self.salt, self.password_iterations as u32);
|
||||
self.reset_security_stamp();
|
||||
}
|
||||
|
||||
pub fn reset_security_stamp(&mut self) {
|
||||
|
|
Loading…
Reference in a new issue