Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
[Reset Password] BUG - Update local policies for enforcement (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsalucci committed Oct 8, 2021
1 parent e69425c commit 542852a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion angular/src/components/update-temp-password.component.ts
Expand Up @@ -7,6 +7,7 @@ import { MessagingService } from 'jslib-common/abstractions/messaging.service';
import { PasswordGenerationService } from 'jslib-common/abstractions/passwordGeneration.service';
import { PlatformUtilsService } from 'jslib-common/abstractions/platformUtils.service';
import { PolicyService } from 'jslib-common/abstractions/policy.service';
import { SyncService } from 'jslib-common/abstractions/sync.service';
import { UserService } from 'jslib-common/abstractions/user.service';

import { ChangePasswordComponent as BaseChangePasswordComponent } from './change-password.component';
Expand All @@ -29,11 +30,17 @@ export class UpdateTempPasswordComponent extends BaseChangePasswordComponent {
constructor(i18nService: I18nService, platformUtilsService: PlatformUtilsService,
passwordGenerationService: PasswordGenerationService, policyService: PolicyService,
cryptoService: CryptoService, userService: UserService,
messagingService: MessagingService, private apiService: ApiService) {
messagingService: MessagingService, private apiService: ApiService,
private syncService: SyncService) {
super(i18nService, cryptoService, messagingService, userService, passwordGenerationService,
platformUtilsService, policyService);
}

async ngOnInit() {
await this.syncService.fullSync(true);
super.ngOnInit();
}

togglePassword(confirmField: boolean) {
this.showPassword = !this.showPassword;
document.getElementById(confirmField ? 'masterPasswordRetype' : 'masterPassword').focus();
Expand Down

0 comments on commit 542852a

Please sign in to comment.