Class LoginForm
Represents the form data for user login authentication.
public class LoginForm
- Inheritance
-
LoginForm
- Inherited Members
Remarks
This form is typically used for authenticating users via email and password credentials. It includes validation attributes for input verification.
Properties
Gets or sets the user's email address for login.
[Display(Name = "Email", ResourceType = typeof(Fields))]
[Required(ErrorMessageResourceName = "XRequired", ErrorMessageResourceType = typeof(Messages))]
[MaxLength(100, ErrorMessageResourceName = "XMustHaveUpToYCharacters", ErrorMessageResourceType = typeof(Messages))]
[EmailAddress(ErrorMessageResourceName = "XInvalid", ErrorMessageResourceType = typeof(Messages))]
public virtual string? Email { get; set; }
Property Value
Remarks
This field is required and must be a valid email format with a maximum length of 100 characters, the same limit Email stores.
Password
Gets or sets the user's password for login.
[Display(Name = "Password", ResourceType = typeof(Fields))]
[Required(ErrorMessageResourceName = "XRequired", ErrorMessageResourceType = typeof(Messages))]
[MaxLength(50, ErrorMessageResourceName = "XMustHaveUpToYCharacters", ErrorMessageResourceType = typeof(Messages))]
public virtual string? Password { get; set; }
Property Value
Remarks
This field is required with a maximum length of 50 characters.