Fix GitLab & OAuth button labels on Login page

Previously, these display names were swapped.
pull/370/head
Matt Baer 4 years ago
parent ab32caa49c
commit 63f023ea98
  1. 4
      account.go

@ -325,9 +325,9 @@ func viewLogin(app *App, w http.ResponseWriter, r *http.Request) error {
OauthSlack: app.Config().SlackOauth.ClientID != "", OauthSlack: app.Config().SlackOauth.ClientID != "",
OauthWriteAs: app.Config().WriteAsOauth.ClientID != "", OauthWriteAs: app.Config().WriteAsOauth.ClientID != "",
OauthGitlab: app.Config().GitlabOauth.ClientID != "", OauthGitlab: app.Config().GitlabOauth.ClientID != "",
GitlabDisplayName: config.OrDefaultString(app.Config().GenericOauth.DisplayName, genericOauthDisplayName), GitlabDisplayName: config.OrDefaultString(app.Config().GitlabOauth.DisplayName, gitlabDisplayName),
OauthGeneric: app.Config().GenericOauth.ClientID != "", OauthGeneric: app.Config().GenericOauth.ClientID != "",
OauthGenericDisplayName: config.OrDefaultString(app.Config().GitlabOauth.DisplayName, gitlabDisplayName), OauthGenericDisplayName: config.OrDefaultString(app.Config().GenericOauth.DisplayName, genericOauthDisplayName),
OauthGitea: app.Config().GiteaOauth.ClientID != "", OauthGitea: app.Config().GiteaOauth.ClientID != "",
GiteaDisplayName: config.OrDefaultString(app.Config().GiteaOauth.DisplayName, giteaDisplayName), GiteaDisplayName: config.OrDefaultString(app.Config().GiteaOauth.DisplayName, giteaDisplayName),
} }

Loading…
Cancel
Save