
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com> Co-authored-by: Weblate (bot) <hosted@weblate.org> Co-authored-by: Havokdan <havokdan@yahoo.com.br> Co-authored-by: daydreamrabbit <devrabbit90@gmail.com> Co-authored-by: 無情天 <kofzhanganguo@126.com>
22 lines
633 B
C#
22 lines
633 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.DTOs.Account;
|
|
|
|
public class ResetPasswordDto
|
|
{
|
|
/// <summary>
|
|
/// The Username of the User
|
|
/// </summary>
|
|
[Required]
|
|
public string UserName { get; init; } = default!;
|
|
/// <summary>
|
|
/// The new password
|
|
/// </summary>
|
|
[Required]
|
|
[StringLength(256, MinimumLength = 6)]
|
|
public string Password { get; init; } = default!;
|
|
/// <summary>
|
|
/// The old, existing password. If an admin is performing the change, this is not required. Otherwise, it is.
|
|
/// </summary>
|
|
public string OldPassword { get; init; } = default!;
|
|
}
|