2FA submit disabled (#2790) (#2792)

Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
pull/2850/head
Alex van Andel 2022-05-17 14:25:16 +01:00 committed by GitHub
parent 9921c43c3f
commit 8265c65e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ export default function Login({
<Button
className="flex w-full justify-center"
type="submit"
disabled={form.formState.isSubmitting || form.formState.isSubmitted}>
disabled={form.formState.isSubmitting || (form.formState.isSubmitted && !twoFactorRequired)}>
{twoFactorRequired ? t("submit") : t("sign_in")}
</Button>
</div>