diff options
author | 6543 <6543@obermui.de> | 2021-05-09 16:13:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 16:13:35 +0200 |
commit | a229e3438780a18d283b21920c5ccd1670e5f747 (patch) | |
tree | fee51422c56b2c237b796ca5fd3ff004cdcd96b8 /templates/admin | |
parent | e818e9150f63b5e68ec3018c61c1fae98b1eb1ed (diff) | |
download | gitea-a229e3438780a18d283b21920c5ccd1670e5f747.tar.gz gitea-a229e3438780a18d283b21920c5ccd1670e5f747.zip |
Allow only internal registration (#15795)
* Add ALLOW_ONLY_INTERNAL_REGISTRATION into settings
* OpenID respect setting too
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 6979512df7..b419d04a1b 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -149,6 +149,8 @@ <dd>{{if .Service.RegisterEmailConfirm}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> <dt>{{.i18n.Tr "admin.config.disable_register"}}</dt> <dd>{{if .Service.DisableRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> + <dt>{{.i18n.Tr "admin.config.allow_only_internal_registration"}}</dt> + <dd>{{if .Service.AllowOnlyInternalRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> <dt>{{.i18n.Tr "admin.config.allow_only_external_registration"}}</dt> <dd>{{if .Service.AllowOnlyExternalRegistration}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}}</dd> <dt>{{.i18n.Tr "admin.config.show_registration_button"}}</dt> |