I have been trying to update the password of the simple membership user via swpm_api_action update api call.
Everything else seems to update fine except for the password.
Is this possible?
What is the correct field, or what do I need to do to update the password?
Any help would be appreciated my code is below here.
$post_arr = array(
‘swpm_api_action’ => ‘update’,
‘key’ => ‘##########’,
‘member_id’ => ‘111’,
‘first_name’ => ‘john’,
‘last_name’ => ‘jackson’,
‘password’ => ‘####’,
’email’ => ‘email@example.com’,
‘phone’ => ”,
‘address_street’ => ”,
‘address_city’ => ”,
‘address_state’ => ”,
‘address_zipcode’ => ”,
‘country’ => ”,
‘company_name’ => ”
Did you enter plain text for the password field as per the following instructions?
Thanks for response when you mean plain text as per instructions let say the password is dog12.
Would I put in the password field dog12
If yes then to answer your question I have been putting plain text in the password field.
Thank you for providing more information. I have submitted a message to the developers to investigate further your issue.
Do you get an error response?
Try sending both the following fields (with same value):
I have tried with both fields having the exact same value it doesn’t return an error but it updates the other fields like zip code etc and the password remain the same. As in the password is not updated.
I have updated the API addon to fix a small issue with the password updating code. Please download a new copy and try it (the issue should be solved now):
You must be logged in to reply to this topic.