ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
change_password_request Struct Referencefinal

Request to change the current user's password. More...

#include <account_protocol.hpp>

Collaboration diagram for change_password_request:
Collaboration graph

Public Member Functions

std::vector< std::byte > serialize () const
 Serialize request to bytes.
 

Static Public Member Functions

static std::expected< change_password_request, ores::utility::serialization::error_code > deserialize (std::span< const std::byte > data)
 Deserialize request from bytes.
 

Public Attributes

std::string new_password
 

Detailed Description

Request to change the current user's password.

Used by users to change their own password, typically after being required to reset it. The account ID is determined from the session context.

Member Function Documentation

◆ serialize()

std::vector< std::byte > serialize ( ) const

Serialize request to bytes.

Format:

  • 2 bytes: new_password length
  • N bytes: new_password (UTF-8)