Skip to main content

UserRegister

This class represents the data model for user registration, defining the required fields and validation constraints for creating a new account. It ensures that the email follows a standard format, the password meets specific length requirements, and optionally captures the user's full name.

Attributes

AttributeTypeDescription
emailEmailStrThe unique email address used for account identification and communication, restricted to a maximum of 255 characters.
passwordstrThe secret authentication string for the account, which must be between 8 and 128 characters in length.
full_name`strNone` = null

Constructor

Signature

def UserRegister(
email: EmailStr,
password: string,
full_name: string | None = None
) - > null

Parameters

NameTypeDescription
emailEmailStrThe user's email address, maximum 255 characters.
passwordstringThe user's password, between 8 and 128 characters.
full_name`stringNone` = None

Signature

def UserRegister(
email: EmailStr,
password: string,
full_name: string | None = None
) - > null

Parameters

NameTypeDescription
emailEmailStrThe primary email address used for account identification and login, restricted to 255 characters.
passwordstringThe plain-text password for the new account, which must be between 8 and 128 characters long.
full_name`stringNone` = None