From cdd3aa6cdf4960af94cb9dde82462ed3c0bd01d4 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 21 Apr 2021 14:18:08 -0500 Subject: [PATCH] Revert password reprompt --- src/app/services.module.ts | 6 ------ src/app/vault/view.component.ts | 8 +++----- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/app/services.module.ts b/src/app/services.module.ts index e0f3e5c2..d3caa7ce 100644 --- a/src/app/services.module.ts +++ b/src/app/services.module.ts @@ -38,7 +38,6 @@ import { FileUploadService } from 'jslib/services/fileUpload.service'; import { FolderService } from 'jslib/services/folder.service'; import { NotificationsService } from 'jslib/services/notifications.service'; import { PasswordGenerationService } from 'jslib/services/passwordGeneration.service'; -import { PasswordRepromptService } from 'jslib/services/passwordReprompt.service'; import { PolicyService } from 'jslib/services/policy.service'; import { SearchService } from 'jslib/services/search.service'; import { SendService } from 'jslib/services/send.service'; @@ -72,9 +71,6 @@ import { NotificationsService as NotificationsServiceAbstraction } from 'jslib/a import { PasswordGenerationService as PasswordGenerationServiceAbstraction, } from 'jslib/abstractions/passwordGeneration.service'; -import { - PasswordRepromptService as PasswordRepromptServiceAbstraction -} from 'jslib/abstractions/passwordReprompt.service'; import { PlatformUtilsService as PlatformUtilsServiceAbstraction } from 'jslib/abstractions/platformUtils.service'; import { PolicyService as PolicyServiceAbstraction } from 'jslib/abstractions/policy.service'; import { SearchService as SearchServiceAbstraction } from 'jslib/abstractions/search.service'; @@ -125,7 +121,6 @@ const syncService = new SyncService(userService, apiService, settingsService, folderService, cipherService, cryptoService, collectionService, storageService, messagingService, policyService, sendService, async (expired: boolean) => messagingService.send('logout', { expired: expired })); const passwordGenerationService = new PasswordGenerationService(cryptoService, storageService, policyService); -const passwordRepromptService = new PasswordRepromptService(i18nService, cryptoService, platformUtilsService); const totpService = new TotpService(storageService, cryptoFunctionService); const containerService = new ContainerService(cryptoService); const authService = new AuthService(cryptoService, apiService, userService, tokenService, appIdService, @@ -203,7 +198,6 @@ export function initFactory(): Function { { provide: CryptoServiceAbstraction, useValue: cryptoService }, { provide: CryptoFunctionServiceAbstraction, useValue: cryptoFunctionService }, { provide: PlatformUtilsServiceAbstraction, useValue: platformUtilsService }, - { provide: PasswordRepromptServiceAbstraction, useValue: passwordRepromptService }, { provide: PasswordGenerationServiceAbstraction, useValue: passwordGenerationService }, { provide: ApiServiceAbstraction, useValue: apiService }, { provide: SyncServiceAbstraction, useValue: syncService }, diff --git a/src/app/vault/view.component.ts b/src/app/vault/view.component.ts index 3b086eb5..949b3ec7 100644 --- a/src/app/vault/view.component.ts +++ b/src/app/vault/view.component.ts @@ -13,7 +13,6 @@ import { CryptoService } from 'jslib/abstractions/crypto.service'; import { EventService } from 'jslib/abstractions/event.service'; import { I18nService } from 'jslib/abstractions/i18n.service'; import { MessagingService } from 'jslib/abstractions/messaging.service'; -import { PasswordRepromptService } from 'jslib/abstractions/passwordReprompt.service'; import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service'; import { StorageService } from 'jslib/abstractions/storage.service'; import { TokenService } from 'jslib/abstractions/token.service'; @@ -40,11 +39,10 @@ export class ViewComponent extends BaseViewComponent implements OnChanges { cryptoService: CryptoService, platformUtilsService: PlatformUtilsService, auditService: AuditService, broadcasterService: BroadcasterService, ngZone: NgZone, changeDetectorRef: ChangeDetectorRef, - userService: UserService, eventService: EventService, passwordRepromptService: PasswordRepromptService, + userService: UserService, eventService: EventService, private messagingService: MessagingService, private storageService: StorageService) { super(cipherService, totpService, tokenService, i18nService, cryptoService, platformUtilsService, - auditService, window, broadcasterService, ngZone, changeDetectorRef, userService, eventService, - passwordRepromptService); + auditService, window, broadcasterService, ngZone, changeDetectorRef, userService, eventService); } ngOnInit() { super.ngOnInit(); @@ -73,7 +71,7 @@ export class ViewComponent extends BaseViewComponent implements OnChanges { this.onViewCipherPasswordHistory.emit(this.cipher); } - async copy(value: string, typeI18nKey: string, aType: string) { + copy(value: string, typeI18nKey: string, aType: string) { super.copy(value, typeI18nKey, aType); this.messagingService.send('minimizeOnCopy'); }