summaryrefslogtreecommitdiffstats
path: root/custom
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2018-11-15 02:00:04 +0100
committertechknowlogick <hello@techknowlogick.com>2018-11-14 20:00:04 -0500
commitb97af15de67b04fd259bd70a4abbc873f12e9491 (patch)
tree9a88d821a0ec98edc6dba64804ca6d0692df91fe /custom
parent4c1f1f96465e809161f7d634a07eb60b4511db35 (diff)
downloadgitea-b97af15de67b04fd259bd70a4abbc873f12e9491.tar.gz
gitea-b97af15de67b04fd259bd70a4abbc873f12e9491.zip
Block registration based on email domain (#5157)
* implement email domain whitelist
Diffstat (limited to 'custom')
-rw-r--r--custom/conf/app.ini.sample3
1 files changed, 3 insertions, 0 deletions
diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample
index f42fa122b8..92d72e8c9b 100644
--- a/custom/conf/app.ini.sample
+++ b/custom/conf/app.ini.sample
@@ -311,6 +311,9 @@ ACTIVE_CODE_LIVE_MINUTES = 180
RESET_PASSWD_CODE_LIVE_MINUTES = 180
; Whether a new user needs to confirm their email when registering.
REGISTER_EMAIL_CONFIRM = false
+; List of domain names that are allowed to be used to register on a Gitea instance
+; gitea.io,example.com
+EMAIL_DOMAIN_WHITELIST=
; Disallow registration, only allow admins to create accounts.
DISABLE_REGISTRATION = false
; Allow registration only using third part services, it works only when DISABLE_REGISTRATION is false