问题
I have been using the method SoftLayer_User_Customer::updatePassword for awhile. I am now getting an error 500 Internal Server Error returned.
The content is '{"error":"This method is deprecated. Please see documentation for initiatePortalPasswordChange","code":"SoftLayer_Exception"}'
The URL I use is https://api.softlayer.com/rest/v3/SoftLayer_User_Customer/4719557/updatePassword
with a POST method
I looked at the method initiatePortalPasswordChange and it sends a password change email. We have designed a system where we change the password automatically using teh method updatePassword and it works perfectly for us.
What mwethod do I use now so we can change the password of a username with a REST API?
回答1:
Currently, it's not possible to update your password through SoftLayer API or Control Portal. As you said, the only way is through method:
- SoftLayer_User_Customer::initiatePortalPasswordChange
You can send an email to: PortalFeedback@softlayer.com with your comments or requirements.
来源:https://stackoverflow.com/questions/38227887/softlayer-user-customerupdatepassword-deprecated