diff options
author | Sandro Santilli <strk@kbt.io> | 2017-03-29 12:57:43 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-03-29 18:57:43 +0800 |
commit | 129b0d6a4b408555c579e7ccb2fb15d3d8fcef29 (patch) | |
tree | 88912e81e84c11f1ee7993b9409bf50a23aa7aef /templates/admin | |
parent | 08f7fded3c097685af9370283fc8565b80fb0615 (diff) | |
download | gitea-129b0d6a4b408555c579e7ccb2fb15d3d8fcef29.tar.gz gitea-129b0d6a4b408555c579e7ccb2fb15d3d8fcef29.zip |
Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION (#1369)
* Allow ENABLE_OPENID_SIGNUP to depend on DISABLE_REGISTRATION
Omit the configuration variable (the default) to be dependent.
Fixes #1363
* Move OpenID settings under Service object
* Show OpenID SignUp and SignIn status in admin panel / configuration
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 225c23b97b..7348ab7b9e 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -114,6 +114,10 @@ <dd><i class="fa fa{{if .Service.DisableRegistration}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt> <dd><i class="fa fa{{if .Service.ShowRegistrationButton}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.enable_openid_signup"}}</dt> + <dd><i class="fa fa{{if .Service.EnableOpenIDSignUp}}-check{{end}}-square-o"></i></dd> + <dt>{{.i18n.Tr "admin.config.enable_openid_signin"}}</dt> + <dd><i class="fa fa{{if .Service.EnableOpenIDSignIn}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.require_sign_in_view"}}</dt> <dd><i class="fa fa{{if .Service.RequireSignInView}}-check{{end}}-square-o"></i></dd> <dt>{{.i18n.Tr "admin.config.mail_notify"}}</dt> |