mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 15:53:36 +01:00
2236574d50
- When the database consistency is being run it would check for any
OAuth2 applications that don't have an existing user. However there are
few special OAuth2 applications that don't have an user set, because
they are global applications.
- This was not taken into account by the database consistency checker
and were removed if the database consistency check was being run with
autofix enabled.
- Take into account to ignore these global OAuth2 applications when
running the database consistency check.
- Add unit tests.
- Ref: https://codeberg.org/Codeberg/Community/issues/1530
(cherry picked from commit
|
||
---|---|---|
.. | ||
TestOrphanedOAuth2Applications | ||
access_token.go | ||
access_token_scope.go | ||
access_token_scope_test.go | ||
access_token_test.go | ||
auth_token.go | ||
main_test.go | ||
oauth2.go | ||
oauth2_list.go | ||
oauth2_test.go | ||
session.go | ||
session_test.go | ||
source.go | ||
source_test.go | ||
twofactor.go | ||
webauthn.go | ||
webauthn_test.go |