Form warning fixes
parent
a05860515e
commit
4922a13b68
|
@ -118,8 +118,14 @@ export default function Login({
|
||||||
.catch(() => setErrorMessage(errorMessages[ErrorCode.InternalServerError]));
|
.catch(() => setErrorMessage(errorMessages[ErrorCode.InternalServerError]));
|
||||||
}}
|
}}
|
||||||
data-testid="login-form">
|
data-testid="login-form">
|
||||||
<input defaultValue={csrfToken || undefined} type="hidden" hidden {...form.register("csrfToken")} />
|
<div>
|
||||||
|
<input
|
||||||
|
defaultValue={csrfToken || undefined}
|
||||||
|
type="hidden"
|
||||||
|
hidden
|
||||||
|
{...form.register("csrfToken")}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<div className={classNames("space-y-6", { hidden: twoFactorRequired })}>
|
<div className={classNames("space-y-6", { hidden: twoFactorRequired })}>
|
||||||
<EmailField
|
<EmailField
|
||||||
id="email"
|
id="email"
|
||||||
|
|
Loading…
Reference in New Issue