aboutsummaryrefslogtreecommitdiffstats
path: root/routers/install.go
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2017-11-29 13:47:42 +0100
committerLauris BH <lauris@nix.lv>2017-11-29 14:47:42 +0200
commit67b0d2175dd64d436ffcd95ba58677e43d206770 (patch)
tree4a6194d8f18df9dea61afc158c57eb4492b9dcca /routers/install.go
parentb9452c48aca6831bebbf471d840ab3e6924c4767 (diff)
downloadgitea-67b0d2175dd64d436ffcd95ba58677e43d206770.tar.gz
gitea-67b0d2175dd64d436ffcd95ba58677e43d206770.zip
Set OpenID support on by default when installing new instance (#3010)
Diffstat (limited to 'routers/install.go')
-rw-r--r--routers/install.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/install.go b/routers/install.go
index 427bb960f2..e832f98739 100644
--- a/routers/install.go
+++ b/routers/install.go
@@ -108,8 +108,8 @@ func Install(ctx *context.Context) {
form.OfflineMode = setting.OfflineMode
form.DisableGravatar = setting.DisableGravatar
form.EnableFederatedAvatar = setting.EnableFederatedAvatar
- form.EnableOpenIDSignIn = true
- form.EnableOpenIDSignUp = true
+ form.EnableOpenIDSignIn = setting.Service.EnableOpenIDSignIn
+ form.EnableOpenIDSignUp = setting.Service.EnableOpenIDSignUp
form.DisableRegistration = setting.Service.DisableRegistration
form.EnableCaptcha = setting.Service.EnableCaptcha
form.RequireSignInView = setting.Service.RequireSignInView