Form warning fixes

pull/2694/head
zomars 2022-05-06 15:29:54 -06:00
parent a05860515e
commit 4922a13b68
1 changed files with 8 additions and 2 deletions

View File

@ -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"