mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Block registration based on email domain (#5157)
* implement email domain whitelist
This commit is contained in:
committed by
techknowlogick
parent
4c1f1f9646
commit
b97af15de6
@@ -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
|
||||
|
Reference in New Issue
Block a user