Enable Autocomplete (#2645)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
parent
7e57c192ee
commit
33d486b160
2 changed files with 10 additions and 2 deletions
apps/web/components
|
@ -29,8 +29,15 @@ export default function TwoFactor() {
|
||||||
<div className="mx-auto !mt-0 max-w-sm">
|
<div className="mx-auto !mt-0 max-w-sm">
|
||||||
<p className="mb-4 text-sm text-gray-500">{t("2fa_enabled_instructions")}</p>
|
<p className="mb-4 text-sm text-gray-500">{t("2fa_enabled_instructions")}</p>
|
||||||
<input hidden type="hidden" value={value} {...methods.register("totpCode")} />
|
<input hidden type="hidden" value={value} {...methods.register("totpCode")} />
|
||||||
<div className="flex flex-row space-x-1">
|
<div className="flex flex-row justify-between">
|
||||||
<Input className={className} name="2fa1" inputMode="decimal" {...digits[0]} autoFocus />
|
<Input
|
||||||
|
className={className}
|
||||||
|
name="2fa1"
|
||||||
|
inputMode="decimal"
|
||||||
|
{...digits[0]}
|
||||||
|
autoFocus
|
||||||
|
autoComplete="one-time-code"
|
||||||
|
/>
|
||||||
<Input className={className} name="2fa2" inputMode="decimal" {...digits[1]} />
|
<Input className={className} name="2fa2" inputMode="decimal" {...digits[1]} />
|
||||||
<Input className={className} name="2fa3" inputMode="decimal" {...digits[2]} />
|
<Input className={className} name="2fa3" inputMode="decimal" {...digits[2]} />
|
||||||
<Input className={className} name="2fa4" inputMode="decimal" {...digits[3]} />
|
<Input className={className} name="2fa4" inputMode="decimal" {...digits[3]} />
|
||||||
|
|
|
@ -173,6 +173,7 @@ const EnableTwoFactorModal = ({ onEnable, onCancel }: EnableTwoFactorModalProps)
|
||||||
inputMode="numeric"
|
inputMode="numeric"
|
||||||
onInput={(e) => setTotpCode(e.currentTarget.value)}
|
onInput={(e) => setTotpCode(e.currentTarget.value)}
|
||||||
className="block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm"
|
className="block w-full rounded-sm border-gray-300 shadow-sm sm:text-sm"
|
||||||
|
autoComplete="one-time-code"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue