Api.changePasswordAndLogin¶
- changePasswordAndLogin(username, password, newPassword)¶
 Calling Api.login may indicate that the user’s password has expired and must be changed. This is indicated by the
NewPasswordRequiredproperty of the response object provided by Api.login.This method executes asynchronously and returns a promise.
- Arguments
 username (
string()) – The username.password (
string()) – The current (but expired) password in clear text.newPassword (
string()) – The new password in clear text that will take effect once the authentication using the old password has succeeded.
This method maintains accurate remaining credit information on the
Api()instance. To obtain this, use theApi.RemainingCreditsattribute.- Returns
 For error responses, see Error Responses.