18 lines
		
	
	
		
			599 B
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			599 B
		
	
	
	
		
			C#
		
	
	
	
	
	
|  | using System.ComponentModel.DataAnnotations; | ||
|  | 
 | ||
|  | namespace GestionIntegral.Api.Dtos | ||
|  | { | ||
|  |     public class ChangePasswordRequestDto | ||
|  |     { | ||
|  |         [Required] | ||
|  |         public string CurrentPassword { get; set; } = string.Empty; | ||
|  | 
 | ||
|  |         [Required] | ||
|  |         [StringLength(50, MinimumLength = 6)] // Validaciones | ||
|  |         public string NewPassword { get; set; } = string.Empty; | ||
|  | 
 | ||
|  |         [Required] | ||
|  |         [Compare("NewPassword", ErrorMessage = "La nueva contraseña y la confirmación no coinciden.")] // Validación de confirmación | ||
|  |         public string ConfirmNewPassword { get; set; } = string.Empty; | ||
|  |     } | ||
|  | } |