API/Account/ResetPassword

From Emersion
Jump to: navigation, search

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