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
| Attribute | Type | Description |
|---|---|---|
EmailStr | The unique email address used for account identification and communication, restricted to a maximum of 255 characters. | |
| password | str | The secret authentication string for the account, which must be between 8 and 128 characters in length. |
| full_name | `str | None` = null |
Constructor
Signature
def UserRegister(
email: EmailStr,
password: string,
full_name: string | None = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
EmailStr | The user's email address, maximum 255 characters. | |
| password | string | The user's password, between 8 and 128 characters. |
| full_name | `string | None` = None |
Signature
def UserRegister(
email: EmailStr,
password: string,
full_name: string | None = None
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
EmailStr | The primary email address used for account identification and login, restricted to 255 characters. | |
| password | string | The plain-text password for the new account, which must be between 8 and 128 characters long. |
| full_name | `string | None` = None |