Skip to content

Commit 8557a94

Browse files
authored
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.
1 parent 1f501da commit 8557a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func loadSecurityData(ctx *context.Context) {
8484
// map the provider display name with the AuthSource
8585
sources := make(map[*auth_model.Source]string)
8686
for _, externalAccount := range accountLinks {
87-
if authSource, err := auth_model.GetSourceByID(ctx, externalAccount.LoginSourceID); err == nil && authSource.IsActive {
87+
if authSource, err := auth_model.GetSourceByID(ctx, externalAccount.LoginSourceID); err == nil {
8888
var providerDisplayName string
8989

9090
type DisplayNamed interface {

0 commit comments

Comments
 (0)