Class UpdateProfileForm
Represents the form data for updating a user's profile information.
public class UpdateProfileForm
- Inheritance
-
UpdateProfileForm
- Inherited Members
Remarks
This form allows users to update their basic profile information such as name and surname. It can also be used for email change operations when a token is provided.
Properties
Gets or sets the new email address when changing the user's email.
public string? Email { get; set; }
Property Value
Remarks
This field is optional and only used when the user is requesting an email change. A confirmation token must be provided via the Token property for email changes.
Name
Gets or sets the user's first name.
[Display(Name = "Name", ResourceType = typeof(Fields))]
[Required(ErrorMessageResourceName = "XRequired", ErrorMessageResourceType = typeof(Messages))]
[MaxLength(50, ErrorMessageResourceName = "XMustHaveUpToYCharacters", ErrorMessageResourceType = typeof(Messages))]
public string? Name { get; set; }
Property Value
Remarks
This field is required with a maximum length of 50 characters.
Surname
Gets or sets the user's surname (last name).
[Display(Name = "Surname", ResourceType = typeof(Fields))]
[Required(ErrorMessageResourceName = "XRequired", ErrorMessageResourceType = typeof(Messages))]
[MaxLength(50, ErrorMessageResourceName = "XMustHaveUpToYCharacters", ErrorMessageResourceType = typeof(Messages))]
public string? Surname { get; set; }
Property Value
Remarks
This field is required with a maximum length of 50 characters.
Token
Gets or sets the email change confirmation token.
public string? Token { get; set; }
Property Value
Remarks
This token is required when changing the user's email address. The token is typically sent to the new email address for verification.