diff --git a/src/abstractions/policy.service.ts b/src/abstractions/policy.service.ts index e281fb5855..ca0d3c9ed7 100644 --- a/src/abstractions/policy.service.ts +++ b/src/abstractions/policy.service.ts @@ -1,7 +1,7 @@ import { PolicyData } from '../models/data/policyData'; -import { MasterPasswordPolicyOptions } from '../models/domain/masterPasswordPolicyOptions' -import { Policy } from '../models/domain/policy' +import { MasterPasswordPolicyOptions } from '../models/domain/masterPasswordPolicyOptions'; +import { Policy } from '../models/domain/policy'; import { PolicyType } from '../enums/policyType'; @@ -12,7 +12,7 @@ export abstract class PolicyService { getAll: (type?: PolicyType) => Promise; replace: (policies: { [id: string]: PolicyData; }) => Promise; clear: (userId: string) => Promise; - getMasterPasswordPolicyOptions: () => Promise; + getMasterPasswordPolicyOptions: (policies?: Policy[]) => Promise; evaluateMasterPassword: (passwordStrength: number, newPassword: string, enforcedPolicyOptions?: MasterPasswordPolicyOptions) => boolean; } diff --git a/src/services/policy.service.ts b/src/services/policy.service.ts index 040b23ba76..6d3dcb7518 100644 --- a/src/services/policy.service.ts +++ b/src/services/policy.service.ts @@ -4,8 +4,8 @@ import { UserService } from '../abstractions/user.service'; import { PolicyData } from '../models/data/policyData'; +import { MasterPasswordPolicyOptions } from '../models/domain/masterPasswordPolicyOptions'; import { Policy } from '../models/domain/policy'; -import { MasterPasswordPolicyOptions } from '../models/domain/masterPasswordPolicyOptions' import { PolicyType } from '../enums/policyType';