NewPassword
This class represents a schema for updating a user's password using a reset token. It defines the required fields for the new password, including specific length constraints, and the authentication token necessary to authorize the change.
Attributes
| Attribute | Type | Description |
|---|---|---|
| token | str | The unique authentication token used to verify the password reset request. |
| new_password | str | The new password string to be set, which must be between 8 and 128 characters in length. |
Constructor
Signature
def NewPassword(
token: string,
new_password: string
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| token | string | The password reset token provided to the user. |
| new_password | string | The new password to be set, requiring a length between 8 and 128 characters. |