1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

Remove old code for opting into TOTP copy (#379)

This commit is contained in:
Thomas Rittson 2021-05-17 13:20:44 +10:00 committed by GitHub
parent 09f6fd9df9
commit 8659d0975d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 7 deletions

View File

@ -2,5 +2,4 @@ export abstract class TotpService {
getCode: (key: string) => Promise<string>;
getTimeInterval: (key: string) => number;
isAutoCopyEnabled: () => Promise<boolean>;
isAutoCopyOnAutoFillEnabled: () => Promise<boolean>;
}

View File

@ -8,7 +8,6 @@ export class ConstantsService {
static readonly disableBadgeCounterKey: string = 'disableBadgeCounter';
static readonly disableAutoTotpCopyKey: string = 'disableAutoTotpCopy';
static readonly enableAutoFillOnPageLoadKey: string = 'enableAutoFillOnPageLoad';
static readonly enableAutoTotpCopyOnAutoFillKey: string = 'enableAutoTotpCopyOnAutoFillKey';
static readonly vaultTimeoutKey: string = 'lockOption';
static readonly vaultTimeoutActionKey: string = 'vaultTimeoutAction';
static readonly lastActiveKey: string = 'lastActive';
@ -40,7 +39,6 @@ export class ConstantsService {
readonly disableBadgeCounterKey: string = ConstantsService.disableBadgeCounterKey;
readonly disableAutoTotpCopyKey: string = ConstantsService.disableAutoTotpCopyKey;
readonly enableAutoFillOnPageLoadKey: string = ConstantsService.enableAutoFillOnPageLoadKey;
readonly enableAutoTotpCopyOnAutoFillKey: string = ConstantsService.enableAutoTotpCopyOnAutoFillKey;
readonly vaultTimeoutKey: string = ConstantsService.vaultTimeoutKey;
readonly vaultTimeoutActionKey: string = ConstantsService.vaultTimeoutActionKey;
readonly lastActiveKey: string = ConstantsService.lastActiveKey;

View File

@ -109,10 +109,6 @@ export class TotpService implements TotpServiceAbstraction {
return !(await this.storageService.get<boolean>(ConstantsService.disableAutoTotpCopyKey));
}
async isAutoCopyOnAutoFillEnabled(): Promise<boolean> {
return await this.storageService.get<boolean>(ConstantsService.enableAutoTotpCopyOnAutoFillKey);
}
// Helpers
private leftPad(s: string, l: number, p: string): string {