Pārlūkot izejas kodu

fix(oauth): remove github refs from generic auth

bergquist 9 gadi atpakaļ
vecāks
revīzija
53dddf1a8f
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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 {