Difference between revisions of "API/Account/ResetPassword"
From Emersion
(new page created for ResetPassword API function) |
|||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
<acc:AccountID>1234567</acc:AccountID> | <acc:AccountID>1234567</acc:AccountID> | ||
<acc:Username>emesupport@communitytelco.com.au</acc:Username> | <acc:Username>emesupport@communitytelco.com.au</acc:Username> | ||
− | <acc:CurrentPassword> | + | <!--Optional:--> |
+ | <acc:CurrentPassword></acc:CurrentPassword> | ||
<acc:NewPassword>******</acc:NewPassword> | <acc:NewPassword>******</acc:NewPassword> | ||
</acc:ResetPasswordRequest> | </acc:ResetPasswordRequest> | ||
Line 28: | Line 29: | ||
* "AccountID required field" - AccountID length is less than 6 characters | * "AccountID required field" - AccountID length is less than 6 characters | ||
* "Username required field" - Username length is 0 | * "Username required field" - Username length is 0 | ||
− | |||
* "New password required field" - New password length is 0 | * "New password required field" - New password length is 0 | ||
* "Invalid account ID" - AccountID does not exist | * "Invalid account ID" - AccountID does not exist | ||
* "Invalid username" - Length greater than 80 Chars | * "Invalid username" - Length greater than 80 Chars | ||
* "New password required a minimum 6 characters" | * "New password required a minimum 6 characters" | ||
− | * "New password can not be the same as current password" | + | * "New password can not be the same as current password"- if current password supplied |
* "Username does not exist" - Can't find username on parent account | * "Username does not exist" - Can't find username on parent account | ||
* "Username does not match" - Username is not the same as account username | * "Username does not match" - Username is not the same as account username | ||
− | * "Existing password does not match" - Current password does not match user account password | + | * "Existing password does not match" - Current password (if supplied) does not match user account password |
Latest revision as of 17:02, 15 June 2016
Purpose
Reset user login password.
Inputs
<soapenv:Header/> <soapenv:Body> <acc:ResetPasswordRequest> <acc:AccountID>1234567</acc:AccountID> <acc:Username>emesupport@communitytelco.com.au</acc:Username> <!--Optional:--> <acc:CurrentPassword></acc:CurrentPassword> <acc:NewPassword>******</acc:NewPassword> </acc:ResetPasswordRequest> </soapenv:Body>
Output
<SOAP-ENV:Body> <ns1:ResetPasswordResponse> <ns1:Status>true</ns1:Status> </ns1:ResetPasswordResponse> </SOAP-ENV:Body>
Error String
- "AccountID required field" - AccountID length is less than 6 characters
- "Username required field" - Username length is 0
- "New password required field" - New password length is 0
- "Invalid account ID" - AccountID does not exist
- "Invalid username" - Length greater than 80 Chars
- "New password required a minimum 6 characters"
- "New password can not be the same as current password"- if current password supplied
- "Username does not exist" - Can't find username on parent account
- "Username does not match" - Username is not the same as account username
- "Existing password does not match" - Current password (if supplied) does not match user account password