mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 11:39:37 +08:00
cleanup
This commit is contained in:
parent
5a37547b37
commit
698ffd886d
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ function verifyPassword(password) {
|
|||
if (!dbPasswordHash) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return givenPasswordHash === dbPasswordHash;
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ function getDataKey(password) {
|
|||
|
||||
const encryptedDataKey = optionService.getOption('encryptedDataKey');
|
||||
|
||||
const decryptedDataKey = dataEncryptionService.decrypt(passwordDerivedKey, encryptedDataKey, 16);
|
||||
const decryptedDataKey = dataEncryptionService.decrypt(passwordDerivedKey, encryptedDataKey);
|
||||
|
||||
return decryptedDataKey;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue