Table of Contents

Class RegisterCredentialRequest

Namespace
Core.CliniCore.Requests.Auth
Assembly
Core.CliniCore.dll

Request DTO for registering new user credentials

public class RegisterCredentialRequest
Inheritance
RegisterCredentialRequest
Inherited Members

Properties

Id

The Id of the associated user profile (shared identity)

[Required(ErrorMessage = "Profile Id is required")]
public Guid Id { get; set; }

Property Value

Guid

Password

[Required(ErrorMessage = "Password is required")]
[StringLength(100, MinimumLength = 6, ErrorMessage = "Password must be at least 6 characters")]
public string Password { get; set; }

Property Value

string

Role

[Required(ErrorMessage = "Role is required")]
public string Role { get; set; }

Property Value

string

Username

[Required(ErrorMessage = "Username is required")]
[StringLength(50, MinimumLength = 3, ErrorMessage = "Username must be between 3 and 50 characters")]
public string Username { get; set; }

Property Value

string