Skip to content

Commit b8c6ee0

Browse files
Merge branch 'authorizerdev:main' into main
2 parents febf4f9 + 0a5357c commit b8c6ee0

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

app/src/pages/login.tsx

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,18 @@ export default function Login({ urlProps }: { urlProps: Record<string, any> }) {
4949
<AuthorizerMagicLinkLogin urlProps={urlProps} />
5050
)}
5151
{(config.is_basic_authentication_enabled ||
52-
config.is_mobile_basic_authentication_enabled) && (
53-
<Footer>
54-
<Link
55-
to="#"
56-
onClick={() => setView(VIEW_TYPES.FORGOT_PASSWORD)}
57-
style={{ marginBottom: 10 }}
58-
>
59-
Forgot Password?
60-
</Link>
61-
</Footer>
62-
)}
52+
config.is_mobile_basic_authentication_enabled) &&
53+
!config.is_magic_link_login_enabled && (
54+
<Footer>
55+
<Link
56+
to="#"
57+
onClick={() => setView(VIEW_TYPES.FORGOT_PASSWORD)}
58+
style={{ marginBottom: 10 }}
59+
>
60+
Forgot Password?
61+
</Link>
62+
</Footer>
63+
)}
6364
</Fragment>
6465
)}
6566
{view === VIEW_TYPES.FORGOT_PASSWORD && (

0 commit comments

Comments
 (0)