fix(oauth): remove github refs from generic auth

This commit is contained in:
bergquist
2016-09-07 10:55:46 +02:00
parent 3b6820ef03
commit 53dddf1a8f
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -22,7 +22,7 @@ type GenericOAuth struct {
} }
func (s *GenericOAuth) Type() int { func (s *GenericOAuth) Type() int {
return int(models.GITHUB) return int(models.GENERIC)
} }
func (s *GenericOAuth) IsEmailAllowed(email string) bool { func (s *GenericOAuth) IsEmailAllowed(email string) bool {