forgejo/templates/user/auth
0ko e3ba342665 fix(ui): disable spellcheck on TOTP form fields (#7868)
Ref https://codeberg.org/forgejo/forgejo/issues/7842#issuecomment-4574366

Currently browsers could offer spellcheck on these fields, my browser does.

MDN [recommends](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/spellcheck#security_and_privacy_concerns) that on fields with sensitive information this property is set to `false` in case 3rd party not-fully-trusted spellchecking service is used. I consider these fields as containing sensitive information, and spellcheck is not useful on them anyway.

### Testing

There's currently no integration testing for these TOTP forms. I do plan to add some in my other TOTP-related work.

I tested that this did change the behavior in my browser and don't think we need additional testing right now.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7868
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Beowulf <beowulf@beocode.eu>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Co-committed-by: 0ko <0ko@noreply.codeberg.org>
2025-05-14 23:04:43 +00:00
..
activate.tmpl Move all login and account creation page labels to be above inputs (#29432) 2024-03-23 12:36:12 +01:00
captcha.tmpl Defer captcha script loading (#33919) 2025-04-01 02:28:02 +02:00
change_passwd.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
change_passwd_inner.tmpl Move all login and account creation page labels to be above inputs (#29432) 2024-03-23 12:36:12 +01:00
finalize_openid.tmpl fix(i18n): fix several usages of i18n (#7422) 2025-04-02 14:50:02 +00:00
forgot_passwd.tmpl Move all login and account creation page labels to be above inputs (#29432) 2024-03-23 12:36:12 +01:00
grant.tmpl show OAuth2 requested scopes in authorization UI 2024-08-09 14:58:15 +02:00
grant_error.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
link_account.tmpl [UI] Fix inconsitencies in link/login account page 2024-08-09 10:52:17 +02:00
oauth_container.tmpl Drop SSPI auth support and more Windows files (#7148) 2025-03-08 00:43:41 +00:00
oidc_wellknown.tmpl Refactor more code in templates (#29236) 2024-02-19 22:58:32 +01:00
prohibit_login.tmpl Move all login and account creation page labels to be above inputs (#29432) 2024-03-23 12:36:12 +01:00
reset_passwd.tmpl Remove unnecessary ".Link" usages (#29929) 2024-03-26 19:04:26 +01:00
signin.tmpl Refactor login page (#31530) 2024-07-07 14:22:44 +05:00
signin_inner.tmpl fix: disable forgotten password for external signin only (#6680) 2025-02-14 12:54:18 +00:00
signin_openid.tmpl Refactor login page (#31530) 2024-07-07 14:22:44 +05:00
signup.tmpl Refactor login page (#31530) 2024-07-07 14:22:44 +05:00
signup_inner.tmpl [UI] Fix inconsitencies in link/login account page 2024-08-09 10:52:17 +02:00
signup_openid_connect.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
signup_openid_navbar.tmpl [Port] gitea#29982 Introduce .secondary-nav and handle .page-content spacing universally 2024-03-28 16:43:09 +01:00
signup_openid_register.tmpl Move all login and account creation page labels to be above inputs (#29432) 2024-03-23 12:36:12 +01:00
twofa.tmpl fix(ui): disable spellcheck on TOTP form fields (#7868) 2025-05-14 23:04:43 +00:00
twofa_scratch.tmpl fix(ui): disable spellcheck on TOTP form fields (#7868) 2025-05-14 23:04:43 +00:00
webauthn.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
webauthn_error.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00