ResetPassword

Reset a user's password to a random string, with an optional duration of validity in hours.

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

NameTypeSize (bytes)Description
MessageTypeInteger (unsigned)2The unique identifier of this message.
ClientIdInteger (unsigned)4The unique identifier of a session with the server, returned in a successful LoginReply message.
RequestIdInteger (unsigned)4Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.

Fields

NameTypeSize (bytes)Description
UserForeign key to User8
HoursValidInteger (unsigned)2

Permissions


Reset own password

{ user: "test-user" }

Permission Checks

PermissionActionTableScopeIndex
AmendUserInstance2

Test file: ResetPassword