Forum: Windows

Here is a forum space for SDK: Windows.

416. how to update user password

we did not found method to update user password.

Jan 5 '25 at 09:38 (GMT0) created by s.hashim

 
You could use updateProfile.
https://dev.proptt2.com/sdk-client-ref5-pttclient.html#updateProfile

Please refer to C++ sample code.

JsonContent json;
json.setValue("Password", imptt::sha512::hash(imptt::string::ttoa(password)).c_str());
int result = client_->updateProfile(json.getString().c_str());

ProPTT2

Jan 6 '25 at 01:54 (GMT0) created by ProPTT2 dev