diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-11-06 07:09:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-06 06:09:34 +0000 |
commit | 8557a9455b06c2e17982e9bae5263617500cf5b4 (patch) | |
tree | f846081045a9ebb078cf13da2b5c7096eaeff950 /routers/web/user | |
parent | 1f501dae9e12cf092ec6eb5416620d5287a97074 (diff) | |
download | gitea-8557a9455b06c2e17982e9bae5263617500cf5b4.tar.gz gitea-8557a9455b06c2e17982e9bae5263617500cf5b4.zip |
Revert #27870 (#27917)
Now that we have #27798 we don't need the check from #27870 anymore.
With the check it's not possible to remove an inactive auth source from
the user.
Diffstat (limited to 'routers/web/user')
-rw-r--r-- | routers/web/user/setting/security/security.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/user/setting/security/security.go b/routers/web/user/setting/security/security.go index e64901ae72..ec269776e2 100644 --- a/routers/web/user/setting/security/security.go +++ b/routers/web/user/setting/security/security.go @@ -84,7 +84,7 @@ func loadSecurityData(ctx *context.Context) { // map the provider display name with the AuthSource sources := make(map[*auth_model.Source]string) for _, externalAccount := range accountLinks { - if authSource, err := auth_model.GetSourceByID(ctx, externalAccount.LoginSourceID); err == nil && authSource.IsActive { + if authSource, err := auth_model.GetSourceByID(ctx, externalAccount.LoginSourceID); err == nil { var providerDisplayName string type DisplayNamed interface { |