Maybe 2FA login can be optimized #11778

Open
opened 2025-11-02 09:47:29 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @soxft on GitHub (Oct 4, 2023).

Description

I use Safari's built-in 2FA to automatically fill in. After I enter the password, Safari will automatically click to log in, but I will habitually press Enter again. so it gives me a 500 error code.

After I checked the log, I found an "not in 2fa session" error. so I think this was caused by my habitually? login twice?

Is it possible to optimize this 2fa login method?

Gitea Version

1.20.3 built with GNU Make 4.2.1, go1.20.7 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

systemd

Database

None

Originally created by @soxft on GitHub (Oct 4, 2023). ### Description I use Safari's built-in 2FA to automatically fill in. After I enter the password, Safari will automatically click to log in, but I will habitually press Enter again. so it gives me a 500 error code. After I checked the log, I found an "not in 2fa session" error. so I think this was caused by my habitually? login twice? Is it possible to optimize this 2fa login method? ### Gitea Version 1.20.3 built with GNU Make 4.2.1, go1.20.7 : bindata, sqlite, sqlite_unlock_notify ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? systemd ### Database None
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 09:47:29 -06:00
Author
Owner

@yp05327 commented on GitHub (Mar 22, 2024):

We need to disable the button and show a loading img after click the button.
reproduce:

  • select slow 3G
  • click verify twice
    image
@yp05327 commented on GitHub (Mar 22, 2024): We need to disable the button and show a loading img after click the button. reproduce: - select `slow 3G` - click verify twice ![image](https://github.com/go-gitea/gitea/assets/18380374/64c0d42d-527b-4897-97ae-95bfb568c964)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11778