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: create backup on submit when changing password
Abdullah Attaea0623c6bc32
diff --git a/apps/web/src/dialogs/settings/auth-settings.ts b/apps/web/src/dialogs/settings/auth-settings.tsindex e1d2914e9..9d09cb11e 100644--- a/apps/web/src/dialogs/settings/auth-settings.ts+++ b/apps/web/src/dialogs/settings/auth-settings.ts@@ -45,7 +45,6 @@ export const AuthenticationSettings: SettingsGroup[] = [title: strings.changePassword(),variant: "secondary",action: async () => {- if (!(await createBackup())) return;const result = await showPasswordDialog({title: strings.changePassword(),message: strings.changePasswordDesc(),@@ -60,6 +59,7 @@ export const AuthenticationSettings: SettingsGroup[] = [}},validate: async ({ oldPassword, newPassword }) => {+ if (!(await createBackup())) return false;await db.user.clearSessions();return ((await db.user.changePassword(oldPassword, newPassword)) ||