summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-05-09 16:13:35 +0200
committerGitHub <noreply@github.com>2021-05-09 16:13:35 +0200
commita229e3438780a18d283b21920c5ccd1670e5f747 (patch)
treefee51422c56b2c237b796ca5fd3ff004cdcd96b8 /custom
parente818e9150f63b5e68ec3018c61c1fae98b1eb1ed (diff)
downloadgitea-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 'custom')
-rw-r--r--custom/conf/app.example.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 3876396a31..108247419b 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -659,6 +659,8 @@ EMAIL_DOMAIN_WHITELIST =
EMAIL_DOMAIN_BLOCKLIST =
; Disallow registration, only allow admins to create accounts.
DISABLE_REGISTRATION = false
+; Allow registration only using gitea itself, it works only when DISABLE_REGISTRATION is false
+ALLOW_ONLY_INTERNAL_REGISTRATION = false
; Allow registration only using third-party services, it works only when DISABLE_REGISTRATION is false
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
; User must sign in to view anything.