Skip to main content

UpdatePassword

This class represents a data model for updating a user's password, requiring both the current and new passwords. It enforces security constraints by validating that both password fields are between 8 and 128 characters in length.

Attributes

AttributeTypeDescription
current_passwordstringThe user's existing password used for identity verification, which must be between 8 and 128 characters in length.
new_passwordstringThe replacement password to be associated with the account, requiring a minimum of 8 and a maximum of 128 characters.

Constructor

Signature

def UpdatePassword(
current_password: string,
new_password: string
) - > null

Parameters

NameTypeDescription
current_passwordstringThe user's existing password, must be between 8 and 128 characters.
new_passwordstringThe new password to be set, must be between 8 and 128 characters.