only show gitlab signup/login links if gitlab oauth is turned on
Этот коммит содержится в:
@@ -253,3 +253,14 @@ func IsS3Configured() bool {
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func GetAllowedAuthServices() []string {
|
||||
authServices := []string{}
|
||||
for name, service := range Cfg.SSOSettings {
|
||||
if service.Allow {
|
||||
authServices = append(authServices, name)
|
||||
}
|
||||
}
|
||||
|
||||
return authServices
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user