fix: disable passkey button when it's disabled

This commit is contained in:
diced 2025-02-20 11:14:05 -08:00
parent a97decfb0c
commit 60e9b52100
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -296,6 +296,7 @@ export default function Login({ config }: InferGetServerSidePropsType<typeof get
<Divider label='or' />
)}
{config.mfa.passkeys && (
<Button
onClick={handlePasskeyLogin}
size='md'
@ -307,6 +308,7 @@ export default function Login({ config }: InferGetServerSidePropsType<typeof get
>
Login with passkey
</Button>
)}
{config.features.userRegistration && (
<Button