hallo
This commit is contained in:
24
Desktop/hallo/LEA/ViewModels/LoginViewModel.cs
Normal file
24
Desktop/hallo/LEA/ViewModels/LoginViewModel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LEA.ViewModels;
|
||||
|
||||
public class LoginViewModel
|
||||
{
|
||||
[Required(ErrorMessage = "Bitte geben Sie eine E-Mail-Adresse ein.")]
|
||||
[EmailAddress(ErrorMessage = "Bitte eine gültige E-Mail-Adresse eingeben.")]
|
||||
[DataType(DataType.EmailAddress)]
|
||||
[Display(Name = "E-Mail-Adresse")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Bitte geben Sie ein Passwort ein.")]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Passwort")]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
|
||||
[Display(Name = "Angemeldet bleiben")]
|
||||
public bool RememberMe { get; set; }
|
||||
|
||||
[HiddenInput]
|
||||
public string? ReturnUrl { get; set; }
|
||||
}
|
Reference in New Issue
Block a user