From 6c2de6d7d20513a35f5df9fc900854c2b6671efb Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Fri, 18 Jun 2021 02:59:16 -0700 Subject: [PATCH] Remove Terms of Service and Privacy Policy agreements These are not supposed to be shown on self-hosted installations. --- patches/v2.20.4.patch | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/patches/v2.20.4.patch b/patches/v2.20.4.patch index b6d616f..19f0dce 100644 --- a/patches/v2.20.4.patch +++ b/patches/v2.20.4.patch @@ -1,9 +1,26 @@ Submodule jslib contains modified content diff --git a/jslib/src/angular/components/register.component.ts b/jslib/src/angular/components/register.component.ts -index ae45add..e6a5590 100644 +index ae45add..a2ea12b 100644 --- a/jslib/src/angular/components/register.component.ts +++ b/jslib/src/angular/components/register.component.ts -@@ -69,6 +69,12 @@ export class RegisterComponent { +@@ -24,7 +24,7 @@ export class RegisterComponent { + formPromise: Promise; + masterPasswordScore: number; + referenceData: ReferenceEventRequest; +- showTerms = true; ++ showTerms = false; + acceptPolicies: boolean = false; + + protected successRoute = 'login'; +@@ -35,7 +35,6 @@ export class RegisterComponent { + protected apiService: ApiService, protected stateService: StateService, + protected platformUtilsService: PlatformUtilsService, + protected passwordGenerationService: PasswordGenerationService) { +- this.showTerms = !platformUtilsService.isSelfHost(); + } + + get masterPasswordScoreWidth() { +@@ -69,6 +68,12 @@ export class RegisterComponent { } async submit() {