vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 448e6ac917e6bf34f7a5af175714eef9058b6021
parent 729c9cff41cc74055f8397fae7f60084dcf4b71b
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat,  3 Oct 2020 22:43:13 +0200

Invalidate sessions when changing password or kdf values

Diffstat:
Msrc/db/models/user.rs | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/db/models/user.rs b/src/db/models/user.rs @@ -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) {