[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:
Tom authored and GitHub committed 2026-10-06 20:28:51 +02:00
1 parent c687cacb6b
commit 8647af8f89
5 files changed
+193 -19

No files matched your search

+4
View File
@@ -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())