Added Authentication with user-auth and apikey-auth
This commit is contained in:
18
watcher-monitoring/Models/LoginViewModel.cs
Normal file
18
watcher-monitoring/Models/LoginViewModel.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace watcher_monitoring.Models;
|
||||
|
||||
public class LoginViewModel
|
||||
{
|
||||
[Required(ErrorMessage = "Benutzername ist erforderlich")]
|
||||
[Display(Name = "Benutzername")]
|
||||
public string Username { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Passwort ist erforderlich")]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Passwort")]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
[Display(Name = "Angemeldet bleiben")]
|
||||
public bool RememberMe { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user