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

two factor email setup

This commit is contained in:
Kyle Spearrin
2017-06-20 09:21:35 -04:00
parent 2eaaecd95c
commit 475160cfe1
4 changed files with 81 additions and 2 deletions

View File

@ -42,12 +42,16 @@ namespace Bit.Core.Models.Api
}
}
public class UpdateTwoFactorEmailRequestModel : TwoFactorRequestModel
public class TwoFactorEmailRequestModel : TwoFactorRequestModel
{
[Required]
[EmailAddress]
[StringLength(50)]
public string Email { get; set; }
}
public class UpdateTwoFactorEmailRequestModel : TwoFactorEmailRequestModel
{
[Required]
[StringLength(50)]
public string Token { get; set; }