Skip to content

ndi.cloud.auth.password

  PASSWORD - update a users password

  [STATUS,RESPONSE] = ndi.cloud.auth.PASSWORD(OLDPASSWORD, NEWPASSWORD, AUTH_TOKEN)

  Inputs:
    OLDPASSWORD - a string representing the old password
    NEWPASSWORD - a string representing the new password
    AUTH_TOKEN - a string representing the authentification token

  Outputs:
    STATUS - did the new password correctly set? 1 for no, 0 for yes
    RESPONSE - the response summary

  Prepare the JSON data to be sent in the POST request