mirror of
https://github.com/bitwarden/server
synced 2025-12-26 05:03:18 +00:00
21 lines
547 B
C#
21 lines
547 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Bit.Core.Utilities;
|
|
|
|
namespace Bit.Api.Models.Request.Accounts
|
|
{
|
|
public class EmailRequestModel : SecretVerificationRequestModel
|
|
{
|
|
[Required]
|
|
[StrictEmailAddress]
|
|
[StringLength(256)]
|
|
public string NewEmail { get; set; }
|
|
[Required]
|
|
[StringLength(300)]
|
|
public string NewMasterPasswordHash { get; set; }
|
|
[Required]
|
|
public string Token { get; set; }
|
|
[Required]
|
|
public string Key { get; set; }
|
|
}
|
|
}
|