]> source.dussan.org Git - gitea.git/commitdiff
Revert #27870 (#27917)
authorKN4CK3R <admin@oldschoolhack.me>
Mon, 6 Nov 2023 06:09:34 +0000 (07:09 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2023 06:09:34 +0000 (06:09 +0000)
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.

routers/web/user/setting/security/security.go

index e64901ae728e7c447a831e88cdedf11d480929af..ec269776e2b6b6562129ab6c6b9885b3f66cc4b2 100644 (file)
@@ -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 {