Table of Contents

Class LoginRequestDto

Namespace
GastroSky.Models.DTO.Auth
Assembly
GastroSky.Models.dll

DTO for the login POST endpoint.

public sealed class LoginRequestDto
Inheritance
LoginRequestDto
Inherited Members

Properties

Email

The user's email address.

[Required]
[EmailAddress]
public string Email { get; set; }

Property Value

string

PasswordHashSHA256

SHA-256 hash of the user's password, hex-encoded into a 64-character all-lowercase string.

[Required]
public string PasswordHashSHA256 { get; set; }

Property Value

string

Totp

[OPTIONAL] 2FA token.

public string? Totp { get; set; }

Property Value

string