diff options
| author | 2025-04-20 17:46:25 +0200 | |
|---|---|---|
| committer | 2025-04-20 17:46:25 +0200 | |
| commit | a87be80c902d947fe1737c5e5e82d69a8a132273 (patch) | |
| tree | 52ff6484d614ff57b995bfe2c6dfe439e16e7983 /web/template/2fa.tmpl | |
| parent | [bugfix] Fix '+'-separated scopes not being recognized (#4028) (diff) | |
| download | gotosocial-a87be80c902d947fe1737c5e5e82d69a8a132273.tar.xz | |
[feature/frontend] add autocomplete + other helpful attributes to auth html pages (#4029)
* [feature/frontend] add autocomplete + other helpful attributes to auth html pages
* add autocorrect="off"
Diffstat (limited to 'web/template/2fa.tmpl')
| -rw-r--r-- | web/template/2fa.tmpl | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/web/template/2fa.tmpl b/web/template/2fa.tmpl index d5442c773..ce47ab671 100644 --- a/web/template/2fa.tmpl +++ b/web/template/2fa.tmpl @@ -25,18 +25,24 @@ <p>Hi <b>{{- .user -}}</b>!</p> <p> You have enabled two-factor authentication for your account. - To continue signing in, please enter a code from your authenticator app. + To continue signing in, please enter a 6-digit code from your authenticator app. </p> <p> - If you have lost access to your authenticator app, you can enter one of your backup/recovery - codes into the form instead to bypass 2FA. Once you have used a code, it cannot be used again. + If you have lost access to your authenticator app, you can enter one of your 32-character backup/recovery + codes into the form instead to bypass 2FA. Once you have used a recovery code, it cannot be used again. </p> <div class="labelinput"> - <label for="code">Code</label> + <label for="code">2FA Code</label> <input name="code" + id="code" + autocomplete="off" + autocorrect="off" + autocapitalize="characters" required - placeholder="Please enter a code from your authenticator app, or a one-time backup/recovery code" + autofocus + pattern="(^\d{6}$|^[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{32}$)" + placeholder="Please enter a 6-digit code from your authenticator app, or a 32-character backup/recovery code" > </div> <button type="submit" class="btn btn-success">Submit</button> |
