Files
constructdemo/ConstructorApp.DtoLayer/AppUserDto/AppUserEditDto.cs
2025-05-01 15:18:30 +03:00

21 lines
680 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System.ComponentModel.DataAnnotations;
namespace ConstructorApp.DtoLayer.AppUserDto
{
public class AppUserEditDto
{
public string? UserName { get; set; }
[Required(ErrorMessage = "Mevcut şifre alanı zorunludur.")]
[Display(Name = "Mevcut Şifre")]
public string? CurrentPassword { get; set; } // Bu alan zorunlu hale getirildi
[StringLength(50), Display(Name = "Yeni Şifre")]
public string? Password { get; set; }
[Compare("Password", ErrorMessage = "Şifreler eşleşmiyor.")]
[StringLength(50), Display(Name = "Şifre Tekrar")]
public string? ConfirmPassword { get; set; }
}
}