Skip to content

Thread safe problem in OAuth2 login #6268

@BetaCat0

Description

@BetaCat0
  • Gitea version (or commit ref): master
  • Git version: 2.x
  • Operating system: linux(centos)
  • 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:

Description

I found a thread safe problem that will let oauth2 login fail. This happened when you double click the
login button and then, as you can see, login failed(gif 1). Things also can be reproduced in try.gitea.io(gif 2).

Screenshots

g1
gif 1
g2
gif 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions