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
mobile: allow changin primary 2fa
ammarahm-ed5a228ce5fed6
diff --git a/apps/mobile/app/screens/settings/index.tsx b/apps/mobile/app/screens/settings/index.tsxindex 186f9f261..71f016667 100644--- a/apps/mobile/app/screens/settings/index.tsx+++ b/apps/mobile/app/screens/settings/index.tsx@@ -60,8 +60,8 @@ export const Settings = () => {<SettingsStack.NavigatorinitialRouteName="SettingsHome"screenListeners={{- beforeRemove: (e) => {- if (e.target?.startsWith("SettingsGroup")) {+ focus: (e) => {+ if (e.target?.startsWith("SettingsHome-")) {useNavigationStore.getState().update({ name: "Settings" }, false);}}diff --git a/apps/mobile/app/screens/settings/settings-data.tsx b/apps/mobile/app/screens/settings/settings-data.tsxindex 3d080a5ee..f79a302f9 100644--- a/apps/mobile/app/screens/settings/settings-data.tsx+++ b/apps/mobile/app/screens/settings/settings-data.tsx@@ -179,17 +179,15 @@ export const settingsGroups: SettingSection[] = [sections: [{id: "enable-2fa",- name: "Enable two-factor authentication",+ name: "Change primary two-factor authentication",modifer: () => {verifyUser("global", async () => {MFASheet.present();});},useHook: () => useUserStore((state) => state.user),- hidden: (user) => {- return !!(user as User)?.mfa?.isEnabled;- },- description: "Increased security for your account"+ description:+ "Change your current two-factor authentication method"},{id: "2fa-fallback",@@ -241,23 +239,6 @@ export const settingsGroups: SettingSection[] = [},description:"View and save recovery codes for to recover your account"- },- {- id: "disabled-2fa",- name: "Disable two-factor authentication",- modifer: () => {- verifyUser("global", async () => {- await db.mfa?.disable();- const user = await db.user?.fetchUser();- useUserStore.getState().setUser(user);- });- },-- useHook: () => useUserStore((state) => state.user),- hidden: (user) => {- return !(user as User)?.mfa?.isEnabled;- },- description: "Decreased security for your account"}]},