1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-11 18:24:27 +00:00
zeripath 903bdefb58
Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16570)
Backport #16564

This PR has two parts:

* Add locking to goth and gothic calls with a RWMutex

The goth and gothic calls are currently unlocked and thus are a cause of multiple potential races

* Reattempt OAuth2 registration on login if registration failed

If OAuth2 registration fails at startup we currently disable the login_source however an alternative approach could be to reattempt registration on login attempt.
    
Fix #16096

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-07-29 18:52:38 +01:00
..
2021-04-01 19:41:09 +02:00
2021-06-07 07:27:09 +02:00
2021-04-19 18:25:08 -04:00
2021-04-19 18:25:08 -04:00
2021-04-17 10:27:25 +01:00
2020-10-02 23:37:53 -04:00
2021-04-12 10:49:26 -04:00
2021-07-21 20:19:36 +08:00
2021-07-12 17:13:59 -04:00
2018-11-04 22:20:00 -05:00
2021-05-03 13:24:24 -04:00
2019-06-12 15:41:28 -04:00
2021-07-21 20:19:36 +08:00
2020-04-05 07:20:50 +01:00