Allow users to use a generic oauth that conforms to the github style.

Enables users to set their own link text.
This commit is contained in:
Kevin Fitzpatrick
2016-04-12 17:54:45 -07:00
parent 603e5fe0bf
commit b4646b6c3a
5 changed files with 29 additions and 4 deletions

View File

@@ -27,6 +27,8 @@ func LoginView(c *middleware.Context) {
viewData.Settings["googleAuthEnabled"] = setting.OAuthService.Google
viewData.Settings["githubAuthEnabled"] = setting.OAuthService.GitHub
viewData.Settings["genericOAuthEnabled"] = setting.OAuthService.Generic
viewData.Settings["oauthProviderName"] = setting.OAuthService.OAuthProviderName
viewData.Settings["disableUserSignUp"] = !setting.AllowUserSignUp
viewData.Settings["loginHint"] = setting.LoginHint
viewData.Settings["allowUserPassLogin"] = setting.AllowUserPassLogin