AdobeConnect-php-api-client icon indicating copy to clipboard operation
AdobeConnect-php-api-client copied to clipboard

Change User password functionality

Open ghost opened this issue 8 years ago • 0 comments

Hi,

i was using this library but facing problems using the updateUser to change the password, so i have added this function to do that:#

public function changeUserPassword($email, $newPassword) {
        $principal_id = $this->getUserByEmail($email, true);
        return $this->makeRequest('user-update-pwd', 
                array(
                    'user-id'           => $principal_id,
                    'password'          => $newPassword,
                    'password-verify'   => $newPassword
                )
            );
    }

i have used the information provided here: https://helpx.adobe.com/adobe-connect/webservices/user-update-pwd.html

If you want to add to your library, feel free. And thank you very much for your work !!

ghost avatar May 07 '16 21:05 ghost