mirror of
https://github.com/bitwarden/server
synced 2025-12-21 18:53:41 +00:00
[PM-17645] : update email for new email multi factor tokens (#5428)
* feat(newDeviceVerification) : Initial update to email * fix : email copying over extra whitespace when using keyboard short cuts * test : Fixing tests for new device verificaiton email format
This commit is contained in:
@@ -21,7 +21,21 @@ public interface IUserService
|
||||
Task<IdentityResult> CreateUserAsync(User user);
|
||||
Task<IdentityResult> CreateUserAsync(User user, string masterPasswordHash);
|
||||
Task SendMasterPasswordHintAsync(string email);
|
||||
Task SendTwoFactorEmailAsync(User user);
|
||||
/// <summary>
|
||||
/// Used for both email two factor and email two factor setup.
|
||||
/// </summary>
|
||||
/// <param name="user">user requesting the action</param>
|
||||
/// <param name="authentication">this controls if what verbiage is shown in the email</param>
|
||||
/// <returns>void</returns>
|
||||
Task SendTwoFactorEmailAsync(User user, bool authentication = true);
|
||||
/// <summary>
|
||||
/// Calls the same email implementation but instead it sends the token to the account email not the
|
||||
/// email set up for two-factor, since in practice they can be different.
|
||||
/// </summary>
|
||||
/// <param name="user">user attepting to login with a new device</param>
|
||||
/// <returns>void</returns>
|
||||
Task SendNewDeviceVerificationEmailAsync(User user);
|
||||
Task<bool> VerifyTwoFactorEmailAsync(User user, string token);
|
||||
Task<CredentialCreateOptions> StartWebAuthnRegistrationAsync(User user);
|
||||
Task<bool> DeleteWebAuthnKeyAsync(User user, int id);
|
||||
Task<bool> CompleteWebAuthRegistrationAsync(User user, int value, string name, AuthenticatorAttestationRawResponse attestationResponse);
|
||||
|
||||
Reference in New Issue
Block a user