From 53dddf1a8fd3924434ea8e808aca4a074dd980cc Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 7 Sep 2016 10:55:46 +0200 Subject: [PATCH] fix(oauth): remove github refs from generic auth --- pkg/models/models.go | 1 + pkg/social/generic_oauth.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 {