UI: 2FA code entry field is a "counter" #2711

Closed
opened 2025-11-02 04:45:17 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @0x5c on GitHub (Jan 5, 2019).

  • Gitea version (or commit ref): 30560b0
  • Git version: 2.15.3
  • Operating system: Docker image (on Debian 9.6 stretch)
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes
    • No
    • Not relevant
  • Log gist: most probably not needed

Description

The field for the 2FA code is a "counter" field. Repro: login on a 2FA enabled account.

Screenshots

gitea_2fa_box

Originally created by @0x5c on GitHub (Jan 5, 2019). - Gitea version (or commit ref): `30560b0` - Git version: 2.15.3 - Operating system: Docker image (on Debian 9.6 stretch) - Database: - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes - [ ] No - [ ] Not relevant - Log gist: most probably not needed ## Description The field for the 2FA code is a "counter" field. Repro: login on a 2FA enabled account. ## Screenshots ![gitea_2fa_box](https://user-images.githubusercontent.com/5877043/50726470-67fc9700-10db-11e9-802b-7628859918b4.png)
GiteaMirror added the topic/ui label 2025-11-02 04:45:17 -06:00
Author
Owner

@jonasfranz commented on GitHub (Jan 5, 2019):

This is the expected behaviour since this is the input type number. The "counter" is feature provided by your browser.

@jonasfranz commented on GitHub (Jan 5, 2019): This is the expected behaviour since this is the input type `number`. The "counter" is feature provided by your browser.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2711