|
|
@ -325,8 +325,8 @@ func viewLogin(app *App, w http.ResponseWriter, r *http.Request) error { |
|
|
|
app.Config().SlackOauth.ClientID != "", |
|
|
|
app.Config().SlackOauth.ClientID != "", |
|
|
|
app.Config().WriteAsOauth.ClientID != "", |
|
|
|
app.Config().WriteAsOauth.ClientID != "", |
|
|
|
app.Config().GitlabOauth.ClientID != "", |
|
|
|
app.Config().GitlabOauth.ClientID != "", |
|
|
|
app.Config().GenericOauth.ClientID != "", |
|
|
|
|
|
|
|
config.OrDefaultString(app.Config().GenericOauth.DisplayName, genericOauthDisplayName), |
|
|
|
config.OrDefaultString(app.Config().GenericOauth.DisplayName, genericOauthDisplayName), |
|
|
|
|
|
|
|
app.Config().GenericOauth.ClientID != "", |
|
|
|
config.OrDefaultString(app.Config().GitlabOauth.DisplayName, gitlabDisplayName), |
|
|
|
config.OrDefaultString(app.Config().GitlabOauth.DisplayName, gitlabDisplayName), |
|
|
|
app.Config().GiteaOauth.ClientID != "", |
|
|
|
app.Config().GiteaOauth.ClientID != "", |
|
|
|
config.OrDefaultString(app.Config().GiteaOauth.DisplayName, giteaDisplayName), |
|
|
|
config.OrDefaultString(app.Config().GiteaOauth.DisplayName, giteaDisplayName), |
|
|
|