Class UserCreationRequestDto
Request DTO for the creation of a new GastroSky.Models.DTO.User.
public sealed class UserCreationRequestDto
- Inheritance
-
UserCreationRequestDto
- Inherited Members
Properties
Address
Address (street + house number).
public string? Address { get; set; }
Property Value
Claims
The GastroSky.Models.DTO.User's auth claims.
public ICollection<UserClaimRequestDto> Claims { get; set; }
Property Value
- See Also
CountryCodeISO
3-letter ISO code for the country of where the GastroSky.Models.DTO.User resides.
[StringLength(3)]
public string? CountryCodeISO { get; set; }
Property Value
Username = the user's email address.
[Required]
[EmailAddress]
public string Email { get; set; }
Property Value
Language
The GastroSky.Models.DTO.User's preferred language.
public Language Language { get; set; }
Property Value
Location
Address location (e.g. city name).
public string? Location { get; set; }
Property Value
Name
The new user's name (ideally, first + last name, whitespace-separated).
public string? Name { get; set; }
Property Value
PasswordHashSHA256
SHA-256 hash of the user's desired password, hex-encoded into a 64-character all-lowercase string.
[Required]
public string PasswordHashSHA256 { get; set; }
Property Value
Phone
Phone number.
[Phone]
public string? Phone { get; set; }
Property Value
ProfilePictureBytesBase64
Optional base64-encoded profile picture.
public string? ProfilePictureBytesBase64 { get; set; }
Property Value
Slug
User slug. If null this will be generated.
public string? Slug { get; set; }
Property Value
WebsiteURL
Optional URL of the GastroSky.Models.DTO.User's website (if they even have one).
[Url]
public string? WebsiteURL { get; set; }
Property Value
ZipCode
ZIP-code.
public string? ZipCode { get; set; }