Implemented ability to reset a user's password.
This commit is contained in:
parent
6309ae9dd3
commit
8220709b4c
4 changed files with 31 additions and 4 deletions
13
API/DTOs/ResetPasswordDto.cs
Normal file
13
API/DTOs/ResetPasswordDto.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace API.DTOs
|
||||
{
|
||||
public class ResetPasswordDto
|
||||
{
|
||||
[Required]
|
||||
public string UserName { get; init; }
|
||||
[Required]
|
||||
[StringLength(8, MinimumLength = 4)]
|
||||
public string Password { get; init; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue