Skip to main content

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​

AttributeTypeDescription
tokenstrThe unique authentication token used to verify the password reset request.
new_passwordstrThe 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​

NameTypeDescription
tokenstringThe password reset token provided to the user.
new_passwordstringThe new password to be set, requiring a length between 8 and 128 characters.