From 5098e784b398f0a4fcc1cf0320b2958ec9484d97 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Thu, 27 Feb 2020 08:38:18 -0600 Subject: [PATCH 01/27] Update jslib (ab9bee2 -> 862057d) (#392) --- jslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jslib b/jslib index 98ae9b06..862057dc 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 98ae9b06294e424decbe0ac1ed27e0bb927c79f8 +Subproject commit 862057dca6bf23b62bf16f2a065c06996d83c5c3 From 828d5ea91109654e733ae0a3ef3cd82f91147de9 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Thu, 27 Feb 2020 12:13:55 -0600 Subject: [PATCH 02/27] Enforce password generator policy options in the UI (#393) --- src/app/services.module.ts | 2 +- src/app/vault/password-generator.component.html | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/services.module.ts b/src/app/services.module.ts index 852588db..1d49a7e9 100644 --- a/src/app/services.module.ts +++ b/src/app/services.module.ts @@ -114,7 +114,7 @@ const lockService = new LockService(cipherService, folderService, collectionServ const syncService = new SyncService(userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, storageService, messagingService, policyService, async (expired: boolean) => messagingService.send('logout', { expired: expired })); -const passwordGenerationService = new PasswordGenerationService(cryptoService, storageService); +const passwordGenerationService = new PasswordGenerationService(cryptoService, storageService, policyService); const totpService = new TotpService(storageService, cryptoFunctionService); const containerService = new ContainerService(cryptoService); const authService = new AuthService(cryptoService, apiService, diff --git a/src/app/vault/password-generator.component.html b/src/app/vault/password-generator.component.html index 4e424aef..46baf59b 100644 --- a/src/app/vault/password-generator.component.html +++ b/src/app/vault/password-generator.component.html @@ -70,22 +70,22 @@
+ [disabled]="enforcedPolicyOptions?.useUppercase" [(ngModel)]="options.uppercase">
+ [disabled]="enforcedPolicyOptions?.useLowercase" [(ngModel)]="options.lowercase">
+ [disabled]="enforcedPolicyOptions?.useNumbers" [(ngModel)]="options.number">
+ [disabled]="enforcedPolicyOptions?.useSpecial" [(ngModel)]="options.special">
@@ -93,12 +93,12 @@
-
-
From e90405a4535c885d90ed50df41199b01afede8e7 Mon Sep 17 00:00:00 2001 From: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com> Date: Fri, 28 Feb 2020 13:09:45 -0600 Subject: [PATCH 03/27] Update jslib (862057d -> 6c52942) (#394) --- jslib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jslib b/jslib index 862057dc..6c529422 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 862057dca6bf23b62bf16f2a065c06996d83c5c3 +Subproject commit 6c529422048c95645304ceb14250c8efce938f34 From ee167571a62c3a0c31991d178e436910bd7b5dbf Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 28 Feb 2020 16:58:51 -0500 Subject: [PATCH 04/27] implement callout component w/ generator policy (#395) --- jslib | 2 +- src/app/app.module.ts | 2 + .../vault/password-generator.component.html | 3 + src/locales/en/messages.json | 3 + src/scss/misc.scss | 81 +++++++++++++++++++ src/scss/variables.scss | 6 ++ 6 files changed, 96 insertions(+), 1 deletion(-) diff --git a/jslib b/jslib index 6c529422..e93c534e 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 6c529422048c95645304ceb14250c8efce938f34 +Subproject commit e93c534ec4f724eaa8b494f516b187bea67b132c diff --git a/src/app/app.module.ts b/src/app/app.module.ts index a1f3f2f6..33793203 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -27,6 +27,7 @@ import { SettingsComponent } from './accounts/settings.component'; import { TwoFactorOptionsComponent } from './accounts/two-factor-options.component'; import { TwoFactorComponent } from './accounts/two-factor.component'; +import { CalloutComponent } from 'jslib/angular/components/callout.component'; import { IconComponent } from 'jslib/angular/components/icon.component'; import { ModalComponent } from 'jslib/angular/components/modal.component'; @@ -151,6 +152,7 @@ registerLocaleData(localeZhTw, 'zh-TW'); AutofocusDirective, BlurClickDirective, BoxRowDirective, + CalloutComponent, CiphersComponent, CollectionsComponent, ColorPasswordPipe, diff --git a/src/app/vault/password-generator.component.html b/src/app/vault/password-generator.component.html index 46baf59b..761a3131 100644 --- a/src/app/vault/password-generator.component.html +++ b/src/app/vault/password-generator.component.html @@ -2,6 +2,9 @@