Update KDF Configuration and processing

- Change default Password Hash KDF Storage from 100_000 to 600_000 iterations
- Update Password Hash when the default iteration value is different
- Validate password_iterations
- Validate client-side KDF to prevent it from being set lower than 100_000
This commit is contained in:
BlackDex
2023-01-24 13:06:31 +01:00
parent 9b7e86efc2
commit 2d8c8e18f7
6 changed files with 35 additions and 15 deletions

View File

@@ -662,7 +662,7 @@ async fn password_emergency_access(
};
// change grantor_user password
grantor_user.set_password(new_master_password_hash, None);
grantor_user.set_password(new_master_password_hash, true, None);
grantor_user.akey = key;
grantor_user.save(&mut conn).await?;