lokale Authentifizierung mit Standard-User admin+changeme
This commit is contained in:
18
Watcher/ViewModels/EditUserViewModel.cs
Normal file
18
Watcher/ViewModels/EditUserViewModel.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Watcher.ViewModels;
|
||||
|
||||
public class EditUserViewModel
|
||||
{
|
||||
[Required]
|
||||
public string? Username { get; set; }
|
||||
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
public string? NewPassword { get; set; }
|
||||
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Compare("NewPassword", ErrorMessage = "Passwörter stimmen nicht überein.")]
|
||||
public string? ConfirmPassword { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user