Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>pull/2850/head
parent
9921c43c3f
commit
8265c65e4c
|
@ -159,7 +159,7 @@ export default function Login({
|
||||||
<Button
|
<Button
|
||||||
className="flex w-full justify-center"
|
className="flex w-full justify-center"
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={form.formState.isSubmitting || form.formState.isSubmitted}>
|
disabled={form.formState.isSubmitting || (form.formState.isSubmitted && !twoFactorRequired)}>
|
||||||
{twoFactorRequired ? t("submit") : t("sign_in")}
|
{twoFactorRequired ? t("submit") : t("sign_in")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue