添加项目文件。
This commit is contained in:
22
Entities/DTO/ResetPasswordDto.cs
Normal file
22
Entities/DTO/ResetPasswordDto.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Entities.DTO
|
||||
{
|
||||
public class ResetPasswordDto
|
||||
{
|
||||
[Required(ErrorMessage = "Password is required")]
|
||||
public string Password { get; set; }
|
||||
|
||||
[Compare(nameof(Password), ErrorMessage = "The password and confirmation password do not match")]
|
||||
public string ConfirmPassword { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string Token { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user