fix: enable autocomplete in totp verification

This commit is contained in:
Alex van de Sandt
2026-07-02 11:58:23 -05:00
committed by Tangled
parent 6ec4484cad
commit 8ae9ce9c8f
@@ -254,7 +254,7 @@
<div class="setup-step">
<p>{$_('security.totpCodePlaceholder')}</p>
<form onsubmit={handleVerifyTotp}>
<input type="text" bind:value={verifyCodeRaw} placeholder="000000" class="code-input" inputmode="numeric" disabled={verifyLoading} />
<input type="text" bind:value={verifyCodeRaw} placeholder="000000" class="code-input" inputmode="numeric" autocomplete="one-time-code" disabled={verifyLoading} />
<div class="actions">
<button type="button" class="secondary" onclick={() => totpSetup = goBackToQr(verifyData)}>{$_('common.back')}</button>
<button type="submit" disabled={verifyLoading || verifyCode.length !== 6}>{$_('security.verifyAndEnable')}</button>