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 --- shared/models/server/custom-config.model.ts | 1 + shared/models/server/server-config.model.ts | 1 + 2 files changed, 2 insertions(+) (limited to 'shared/models/server') diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index 0bccd63e3..75d04423a 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts @@ -69,6 +69,7 @@ export interface CustomConfig { enabled: boolean limit: number requiresEmailVerification: boolean + minimumAge: number } admin: { diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index 1667bc0e2..585e99aca 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts @@ -84,6 +84,7 @@ export interface ServerConfig { allowed: boolean allowedForCurrentIP: boolean requiresEmailVerification: boolean + minimumAge: number } transcoding: { -- cgit v1.2.3