From 2e868c8111b7efec1d94bb653c56e7c0a3aa3556 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Mon, 30 Aug 2021 16:19:31 -0500 Subject: [PATCH] [Callout] Removed redundant code (#1131) * [Callout] ARemoved redundant code * Fixed formatting * Update jslib * Updated ul styling for policy options callout * Update jslib --- jslib | 2 +- src/app/accounts/register.component.html | 20 ++---------- src/app/accounts/register.component.ts | 20 ------------ src/app/accounts/set-password.component.html | 20 ++---------- .../update-temp-password.component.html | 20 ++---------- .../manage/reset-password.component.html | 21 ++----------- .../manage/reset-password.component.ts | 22 +------------ .../settings/change-password.component.html | 20 ++---------- .../emergency-access-takeover.component.html | 31 ++++++------------- src/scss/styles.scss | 4 +++ 10 files changed, 27 insertions(+), 153 deletions(-) diff --git a/jslib b/jslib index daa4f6f9a6..f02720a1c6 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit daa4f6f9a6dc84d6cd9a937be6b5392d2cf51eca +Subproject commit f02720a1c654adeb73d68b73bb61fcf7415041f4 diff --git a/src/app/accounts/register.component.html b/src/app/accounts/register.component.html index 038518ae38..d752d9581a 100644 --- a/src/app/accounts/register.component.html +++ b/src/app/accounts/register.component.html @@ -62,24 +62,8 @@ {{'yourNameDesc' | i18n}}
- - {{'masterPasswordPolicyInEffect' | i18n}} - +
diff --git a/src/app/accounts/register.component.ts b/src/app/accounts/register.component.ts index 3623fbd133..f2c640e217 100644 --- a/src/app/accounts/register.component.ts +++ b/src/app/accounts/register.component.ts @@ -43,26 +43,6 @@ export class RegisterComponent extends BaseRegisterComponent { passwordGenerationService, environmentService); } - getPasswordScoreAlertDisplay() { - if (this.enforcedPolicyOptions == null) { - return ''; - } - - let str: string; - switch (this.enforcedPolicyOptions.minComplexity) { - case 4: - str = this.i18nService.t('strong'); - break; - case 3: - str = this.i18nService.t('good'); - break; - default: - str = this.i18nService.t('weak'); - break; - } - return str + ' (' + this.enforcedPolicyOptions.minComplexity + ')'; - } - async ngOnInit() { const queryParamsSub = this.route.queryParams.subscribe(qParams => { this.referenceData = new ReferenceEventRequest(); diff --git a/src/app/accounts/set-password.component.html b/src/app/accounts/set-password.component.html index e3eeacd3fd..b41e5b9914 100644 --- a/src/app/accounts/set-password.component.html +++ b/src/app/accounts/set-password.component.html @@ -10,24 +10,8 @@
{{'ssoCompleteRegistration' | i18n}}
- - {{'masterPasswordPolicyInEffect' | i18n}} -
    -
  • - {{'policyInEffectMinComplexity' | i18n : getPasswordScoreAlertDisplay()}} -
  • -
  • - {{'policyInEffectMinLength' | i18n : enforcedPolicyOptions?.minLength.toString()}} -
  • -
  • - {{'policyInEffectUppercase' | i18n}}
  • -
  • - {{'policyInEffectLowercase' | i18n}}
  • -
  • - {{'policyInEffectNumbers' | i18n}}
  • -
  • - {{'policyInEffectSpecial' | i18n : '!@#$%^&*'}}
  • -
+
diff --git a/src/app/accounts/update-temp-password.component.html b/src/app/accounts/update-temp-password.component.html index 59685dee93..59d7d238d3 100644 --- a/src/app/accounts/update-temp-password.component.html +++ b/src/app/accounts/update-temp-password.component.html @@ -7,24 +7,8 @@ {{'updateMasterPasswordWarning' | i18n}}
- - {{'masterPasswordPolicyInEffect' | i18n}} -
    -
  • - {{'policyInEffectMinComplexity' | i18n : getPasswordScoreAlertDisplay()}} -
  • -
  • - {{'policyInEffectMinLength' | i18n : enforcedPolicyOptions?.minLength.toString()}} -
  • -
  • - {{'policyInEffectUppercase' | i18n}}
  • -
  • - {{'policyInEffectLowercase' | i18n}}
  • -
  • - {{'policyInEffectNumbers' | i18n}}
  • -
  • - {{'policyInEffectSpecial' | i18n : '!@#$%^&*'}}
  • -
+
diff --git a/src/app/organizations/manage/reset-password.component.html b/src/app/organizations/manage/reset-password.component.html index 7c3e708026..65491cb166 100644 --- a/src/app/organizations/manage/reset-password.component.html +++ b/src/app/organizations/manage/reset-password.component.html @@ -13,24 +13,9 @@