mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Allow only internal registration (#15795)
* Add ALLOW_ONLY_INTERNAL_REGISTRATION into settings * OpenID respect setting too
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user