diff --git a/src/app/services.module.ts b/src/app/services.module.ts index 852588db64..1d49a7e9f2 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 4e424aef59..46baf59b7c 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 @@
-
-