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/user/auth/signup_openid_navbar.tmpl | |
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/user/auth/signup_openid_navbar.tmpl')
-rw-r--r-- | templates/user/auth/signup_openid_navbar.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/user/auth/signup_openid_navbar.tmpl b/templates/user/auth/signup_openid_navbar.tmpl index 9928bb6198..b033022a8e 100644 --- a/templates/user/auth/signup_openid_navbar.tmpl +++ b/templates/user/auth/signup_openid_navbar.tmpl @@ -3,7 +3,7 @@ <a class="{{if .PageIsOpenIDConnect}}active{{end}} item" href="{{AppSubUrl}}/user/openid/connect"> {{.i18n.Tr "auth.openid_connect_title"}} </a> - {{if .EnableOpenIDSignUp}} + {{if and .EnableOpenIDSignUp (not .AllowOnlyInternalRegistration)}} <a class="{{if .PageIsOpenIDRegister}}active{{end}} item" href="{{AppSubUrl}}/user/openid/register"> {{.i18n.Tr "auth.openid_register_title"}} </a> |