diff --git a/pkg/models/models.go b/pkg/models/models.go index 189e594576b..5a53cfdabb3 100644 --- a/pkg/models/models.go +++ b/pkg/models/models.go @@ -6,4 +6,5 @@ const ( GITHUB OAuthType = iota + 1 GOOGLE TWITTER + GENERIC ) diff --git a/pkg/social/generic_oauth.go b/pkg/social/generic_oauth.go index ee0f697b325..f016c87e201 100644 --- a/pkg/social/generic_oauth.go +++ b/pkg/social/generic_oauth.go @@ -22,7 +22,7 @@ type GenericOAuth struct { } func (s *GenericOAuth) Type() int { - return int(models.GITHUB) + return int(models.GENERIC) } func (s *GenericOAuth) IsEmailAllowed(email string) bool {