Change Password

Brief

Change password.

Details

Changes the current password to a new one. TODO: fill the description

It is necessary to change the password from time to time due to security reasons or based on the server notification (IO2GSessionStatus::O2GSessionStatus.ConnectedWithNeedToChangePassword). To change the password, fill the following values in the value map:

Parameter name

Datatype

Description

Psw

const char *

New password

Note: if the newly entered password is the same as the old one, the response will contain onRequestFailed and be accompanied by the following error message: "ORA-20006: Wrong parameters."

To use the command, do the following:

  1. Create a request and send it to the server.

  2. Wait for the response by using IO2GResponseListener.

Example: Change password [hide]

    O2G2Ptr<IO2GValueMap> valuemap = requestFactory->createValueMap();
    valuemap->setString(Command, O2G2::Commands::ChangePassword);
    valuemap->setString(Psw, "NewPassword");

back