Skip to content

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

mobile: do not call clearSessions when changing password

Ammar Ahmed76a1025f59c8
diff --git a/apps/mobile/app/components/auth/change-password.js b/apps/mobile/app/components/auth/change-password.js
index 679cfa0eb..e0368dab1 100644
--- a/apps/mobile/app/components/auth/change-password.js
+++ b/apps/mobile/app/components/auth/change-password.js
@@ -77,7 +77,6 @@ export const ChangePassword = () => {
throw new Error(strings.backupFailed() + `: ${result.error}`);
}
- await db.user.clearSessions();
await db.user.changePassword(oldPassword.current, password.current);
ToastManager.show({
heading: strings.passwordChangedSuccessfully(),
@@ -89,6 +88,7 @@ export const ChangePassword = () => {
await sleep(300);
eSendEvent(eOpenRecoveryKeyDialog);
} catch (e) {
+ console.log(e.stack);
setLoading(false);
ToastManager.show({
heading: strings.passwordChangeFailed(),