core: return false if no fallback key

This commit is contained in:
Ammar Ahmed
2024-12-23 19:22:16 +05:00
committed by Abdullah Atta
parent 8c7ba6b963
commit 07aabf9a2a

View File

@@ -585,6 +585,7 @@ class UserManager {
const fallbackCryptoKey = await this.db
.storage()
.generateCryptoKeyFallback(password, user.salt);
if (!fallbackCryptoKey) return false;
const cryptoKey = await this.db
.storage()
.generateCryptoKey(password, user.salt);