Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Now that we have go-gitea#27798 we don't need the check from go-gitea#27870 anymore.
With the check it's not possible to remove an inactive auth source from
the user.
  • Loading branch information
KN4CK3R authored and fuxiaohei committed Jan 17, 2024
1 parent 1f91f0e commit b9571ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/user/setting/security/security.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b9571ba

Please sign in to comment.