Explorar o código

fix(oauth): remove github refs from generic auth

bergquist %!s(int64=9) %!d(string=hai) anos
pai
achega
53dddf1a8f
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      pkg/models/models.go
  2. 1 1
      pkg/social/generic_oauth.go

+ 1 - 0
pkg/models/models.go

@@ -6,4 +6,5 @@ const (
 	GITHUB OAuthType = iota + 1
 	GOOGLE
 	TWITTER
+	GENERIC
 )

+ 1 - 1
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 {