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
| Attribute | Type | Description |
|---|---|---|
| current_password | string | The user's existing password used for identity verification, which must be between 8 and 128 characters in length. |
| new_password | string | The 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
| Name | Type | Description |
|---|---|---|
| current_password | string | The user's existing password, must be between 8 and 128 characters. |
| new_password | string | The new password to be set, must be between 8 and 128 characters. |