A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
web: verify old password before creating backup during password update (#10031)
01zulfi743d47e9e9a4
diff --git a/apps/web/src/dialogs/settings/auth-settings.ts b/apps/web/src/dialogs/settings/auth-settings.tsindex 8166be867..1009da8b1 100644--- a/apps/web/src/dialogs/settings/auth-settings.ts+++ b/apps/web/src/dialogs/settings/auth-settings.ts@@ -59,6 +59,9 @@ export const AuthenticationSettings: SettingsGroup[] = [}},validate: async ({ oldPassword, newPassword }) => {+ const verify = await db.user.verifyPassword(oldPassword);+ if (!verify) return false;+try {if (!(await createBackup({ noVerify: true }))) return false;return (