ResetPassword
Reset a user's password to a random string, with an optional duration of validity in hours.
- Section: Transactions
- Related Message: ResetPasswordReply
See Password Requirements page for the list of rules that need to be met when choosing a password.
Metadata
- Message Type: TransactionMessage
- Message Number: 1094
Inherited fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| MessageType | Integer (unsigned) | 2 | The unique identifier of this message. |
| ClientId | Integer (unsigned) | 4 | The unique identifier of a session with the server, returned in a successful LoginReply message. |
| RequestId | Integer (unsigned) | 4 | Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session. |
Fields
| Name | Type | Size (bytes) | Description |
|---|---|---|---|
| User | Foreign key to User | 8 | |
| HoursValid | Integer (unsigned) | 2 |
Permissions
Reset own password
{ user: "test-user" }
Permission Checks
| PermissionAction | Table | Scope | Index |
|---|---|---|---|
| Amend | User | Instance | 2 |
Test file: ResetPassword