Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: newPassword -> new_password

thecodrrebca05d6a8ad
diff --git a/packages/core/api/user-manager.js b/packages/core/api/user-manager.js
index 73d46ad2f..7b2b1defe 100644
--- a/packages/core/api/user-manager.js
+++ b/packages/core/api/user-manager.js
@@ -162,12 +162,12 @@ class UserManager {
);
await this._db.outbox.add(
type,
- { newPassword: data.newPassword },
+ { newPassword: data.new_password },
async () => {
const key = await this.getEncryptionKey();
const { email } = await this.getUser();
await this._db.context.deriveCryptoKey(`_uk_@${email}`, {
- password: data.newPassword,
+ password: data.new_password,
salt: key.salt,
});
await this._db.sync(false, true);