1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

CheckPoliciesOnTwoFactorRemoval for 2fa recovery (#659)

This commit is contained in:
Kyle Spearrin
2020-02-28 10:23:19 -05:00
committed by GitHub
parent ae893c72bd
commit 71d9ffdd9d
3 changed files with 30 additions and 21 deletions

View File

@ -39,7 +39,8 @@ namespace Bit.Core.Services
Task UpdateTwoFactorProviderAsync(User user, TwoFactorProviderType type);
Task DisableTwoFactorProviderAsync(User user, TwoFactorProviderType type,
IOrganizationService organizationService);
Task<bool> RecoverTwoFactorAsync(string email, string masterPassword, string recoveryCode);
Task<bool> RecoverTwoFactorAsync(string email, string masterPassword, string recoveryCode,
IOrganizationService organizationService);
Task<string> GenerateUserTokenAsync(User user, string tokenProvider, string purpose);
Task<IdentityResult> DeleteAsync(User user);
Task<IdentityResult> DeleteAsync(User user, string token);