mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-26 01:36:50 +02:00
[Web 2026.9.0] Support new Emergency Access password payload (#7746)
* Support new emergency access password payload * Apply PR 7747 review changes to emergency access * Add Playwright test for emergency access takeover
This commit is contained in:
5 files changed
+193
-19
No files matched your search
@@ -170,6 +170,10 @@ impl User {
|
||||
)
|
||||
}
|
||||
|
||||
pub fn master_password_salt(&self) -> String {
|
||||
self.email.trim().to_lowercase()
|
||||
}
|
||||
|
||||
pub fn check_valid_recovery_code(&self, recovery_code: &str) -> bool {
|
||||
if let Some(ref totp_recover) = self.totp_recover {
|
||||
crypto::ct_eq(recovery_code, totp_recover.to_lowercase())
|
||||
|
||||
Reference in new issue
Block a user