Two factor auth not working anymore #2749

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

Originally created by @xoxys on GitHub (Jan 13, 2019).

  • Gitea version (or commit ref): 1.6.3
  • Git version:
  • Operating system: CentOS 7
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Hi after upgrading gitea to 1.6.3 2fa login does not work anymore. I've deleted the corresponding line in database table two_factor and recreated the 2fa from user login but anyway can't login with new 2fa.

There is something really strange... Scan the QR-Code with andOTP on android works but generated codes are invalid on verification and I can't finish 2fa setup. Trying freeOTP on android, generated codes works for verification to finish 2fa setup but after this login with generated codes are not working.

I've tested LDAP and local user with the same result. Enabling debug logs gives me no errors.

Originally created by @xoxys on GitHub (Jan 13, 2019). - Gitea version (or commit ref): 1.6.3 - Git version: - Operating system: CentOS 7 - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [X] No - [ ] Not relevant - Log gist: Hi after upgrading gitea to 1.6.3 2fa login does not work anymore. I've deleted the corresponding line in database table `two_factor` and recreated the 2fa from user login but anyway can't login with new 2fa. There is something really strange... Scan the QR-Code with andOTP on android works but generated codes are invalid on verification and I can't finish 2fa setup. Trying freeOTP on android, generated codes works for verification to finish 2fa setup but after this login with generated codes are not working. I've tested LDAP and local user with the same result. Enabling debug logs gives me no errors.
Author
Owner

@xoxys commented on GitHub (Jan 13, 2019):

It's not a bug only me... There was a time diff between client and server that brings down 2fa authentication. Issue closed

@xoxys commented on GitHub (Jan 13, 2019): It's not a bug only me... There was a time diff between client and server that brings down 2fa authentication. Issue closed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2749