mirror of
https://github.com/bitwarden/mobile
synced 2025-12-16 16:23:29 +00:00
[AC-1070] Move shared RequirePasswordChangeOnLogin method into PolicyService
This commit is contained in:
@@ -21,5 +21,14 @@ namespace Bit.Core.Abstractions
|
||||
Task<bool> PolicyAppliesToUser(PolicyType policyType, Func<Policy, bool> policyFilter = null, string userId = null);
|
||||
int? GetPolicyInt(Policy policy, string key);
|
||||
Task<bool> ShouldShowVaultFilterAsync();
|
||||
|
||||
/// <summary>
|
||||
/// Checks if the master password requires updating to meet the enforced policy requirements
|
||||
/// </summary>
|
||||
/// <param name="masterPassword"></param>
|
||||
/// <param name="email">The user's email, used to help evaluate password strength</param>
|
||||
/// <param name="enforcedOptions"></param>
|
||||
Task<bool> RequirePasswordChangeOnLoginAsync(string masterPassword, string email,
|
||||
MasterPasswordPolicyOptions enforcedOptions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user