mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
cleaned up "CBC" from methods since we don't have CTR
This commit is contained in:
@@ -18,7 +18,7 @@ async function changePassword(currentPassword, newPassword, req) {
|
||||
const newPasswordVerificationKey = utils.toBase64(await my_scrypt.getVerificationHash(newPassword));
|
||||
const newPasswordDerivedKey = await my_scrypt.getPasswordDerivedKey(newPassword);
|
||||
|
||||
const decryptedDataKey = await password_encryption.getDecryptedDataKeyCbc(currentPassword);
|
||||
const decryptedDataKey = await password_encryption.getDataKey(currentPassword);
|
||||
|
||||
await sql.doInTransaction(async () => {
|
||||
await password_encryption.setDataKey(newPasswordDerivedKey, decryptedDataKey);
|
||||
|
||||
Reference in New Issue
Block a user