16 lines
319 B
C#
16 lines
319 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace ROLAC.API.DTOs.Auth;
|
|
|
|
public class ChangePasswordRequest
|
|
{
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string CurrentPassword { get; set; } = null!;
|
|
|
|
[Required]
|
|
[MinLength(8)]
|
|
[MaxLength(128)]
|
|
public string NewPassword { get; set; } = null!;
|
|
}
|