Skip to content

Commit

Permalink
fix: remove forgot password for magic link login
Browse files Browse the repository at this point in the history
  • Loading branch information
lakhansamani committed Dec 8, 2023
1 parent e4a8eb3 commit a002e2f
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions app/src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,18 @@ export default function Login({ urlProps }: { urlProps: Record<string, any> }) {
<AuthorizerMagicLinkLogin urlProps={urlProps} />
)}
{(config.is_basic_authentication_enabled ||
config.is_mobile_basic_authentication_enabled) && (
<Footer>
<Link
to="#"
onClick={() => setView(VIEW_TYPES.FORGOT_PASSWORD)}
style={{ marginBottom: 10 }}
>
Forgot Password?
</Link>
</Footer>
)}
config.is_mobile_basic_authentication_enabled) &&
!config.is_magic_link_login_enabled && (
<Footer>
<Link
to="#"
onClick={() => setView(VIEW_TYPES.FORGOT_PASSWORD)}
style={{ marginBottom: 10 }}
>
Forgot Password?
</Link>
</Footer>
)}
</Fragment>
)}
{view === VIEW_TYPES.FORGOT_PASSWORD && (
Expand Down

0 comments on commit a002e2f

Please sign in to comment.