mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(oauth): remove github refs from generic auth
This commit is contained in:
@@ -6,4 +6,5 @@ const (
|
|||||||
GITHUB OAuthType = iota + 1
|
GITHUB OAuthType = iota + 1
|
||||||
GOOGLE
|
GOOGLE
|
||||||
TWITTER
|
TWITTER
|
||||||
|
GENERIC
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user