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
fix 2fa sheet not showing on ios on login
ammarahm-ed204898eab13b
diff --git a/apps/mobile/src/components/auth/login.js b/apps/mobile/src/components/auth/login.jsindex 864c1e851..59474bdd9 100644--- a/apps/mobile/src/components/auth/login.js+++ b/apps/mobile/src/components/auth/login.js@@ -97,8 +97,16 @@ export const Login = ({ changeMode }) => {Progress.present();} catch (e) {callback && callback(false);- console.log('Login error', e.message, e.data);+ console.log(+ 'Login error',+ e.message,+ e.data,+ e.message === 'Multifactor authentication required.'+ );if (e.message === 'Multifactor authentication required.') {+ console.log(TwoFactorVerification.present, 'calling 2fa');+ setLoading(false);+ await sleep(300);TwoFactorVerification.present(async mfa => {if (mfa) {console.log(mfa);@@ -137,8 +145,8 @@ export const Login = ({ changeMode }) => {/><ForgotPassword />- <SheetProvider context="two_factor_verify" />+ <SheetProvider context="two_factor_verify" />{loading ? <BaseDialog transparent={true} visible={true} animation="fade" /> : null}<Viewstyle={{diff --git a/apps/mobile/src/components/auth/twofactor.js b/apps/mobile/src/components/auth/twofactor.jsindex 86a1b9b8a..3e13958de 100644--- a/apps/mobile/src/components/auth/twofactor.js+++ b/apps/mobile/src/components/auth/twofactor.js@@ -270,11 +270,13 @@ const TwoFactorVerification = ({ onMfaLogin, mfaInfo }) => {);};-TwoFactorVerification.present = (onMfaLogin, data) => {+TwoFactorVerification.present = (onMfaLogin, data, context) => {+ console.log('presenting sheet');presentSheet({component: <TwoFactorVerification onMfaLogin={onMfaLogin} mfaInfo={data} />,- context: 'two_factor_verify',+ context: context || 'two_factor_verify',onClose: () => {+ console.log('on close called');onMfaLogin();},disableClosing: true