summaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-11-06 07:09:34 +0100
committerGitHub <noreply@github.com>2023-11-06 06:09:34 +0000
commit8557a9455b06c2e17982e9bae5263617500cf5b4 (patch)
treef846081045a9ebb078cf13da2b5c7096eaeff950 /routers/web/user
parent1f501dae9e12cf092ec6eb5416620d5287a97074 (diff)
downloadgitea-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.go2
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 {