Template
mirror of
https://github.com/egmont11/ASP.Net-Core-MVC-Template.git
synced 2026-07-24 07:09:56 +02:00
Changed Auth to use Identity, with easy to set passsword requirenments via appsettings.json
This commit is contained in:
@@ -14,9 +14,12 @@ public class ProfileViewModel
|
||||
[Display(Name = "Email")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Current Password")]
|
||||
public string? CurrentPassword { get; set; }
|
||||
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "New Password (leave blank to keep current)")]
|
||||
[MinLength(5)]
|
||||
public string? NewPassword { get; set; }
|
||||
|
||||
[DataType(DataType.Password)]
|
||||
|
||||
Reference in New Issue
Block a user