From 1f256e7d3cf056c2d999260155cdba58ae1b878b Mon Sep 17 00:00:00 2001 From: Poslovitch Date: Sat, 24 Apr 2021 09:57:01 +0000 Subject: Implemented configurable minimum signup age Implements https://github.com/Chocobozzz/PeerTube/issues/3612 Fixed lint and removed debug Fixed another lint error Apply suggestions from code review Co-authored-by: Chocobozzz Add tests for min signup age config --- config/default.yaml | 1 + config/production.yaml.example | 1 + 2 files changed, 2 insertions(+) (limited to 'config') diff --git a/config/default.yaml b/config/default.yaml index 9b90bacfc..2a281f6c3 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -229,6 +229,7 @@ contact_form: signup: enabled: false limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited + minimum_age: 16 # Used to configure the signup form requires_email_verification: false filters: cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist diff --git a/config/production.yaml.example b/config/production.yaml.example index 47ef47279..42293b843 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example @@ -239,6 +239,7 @@ contact_form: signup: enabled: false limit: 10 # When the limit is reached, registrations are disabled. -1 == unlimited + mimimum_age: 16 requires_email_verification: false filters: cidr: # You can specify CIDR ranges to whitelist (empty = no filtering) or blacklist -- cgit v1.2.3