mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
core: return false if no fallback key
This commit is contained in:
committed by
Abdullah Atta
parent
8c7ba6b963
commit
07aabf9a2a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user