js/cloudmine.js
function(token, newPassword, options) {
      options = opts(this, options);
      options.applevel = true;
      var payload = JSON.stringify({
        password: newPassword
      });

      return new APICall({
        action: "account/password/reset/" + token,
        type: 'POST',
        data: payload,
        processResponse: APICall.basicResponse,
        options: options
      });
    }
function(token, newPassword, options) {
      options = opts(this, options);
      options.applevel = true;
      var payload = JSON.stringify({
        password: newPassword
      });

      return new APICall({
        action: "account/password/reset/" + token,
        type: 'POST',
        data: payload,
        processResponse: APICall.basicResponse,
        options: options
      });
    }
function ( token , newPassword , options ) { options = opts ( this , options ) ; options . applevel = true ; var payload = JSON . stringify ( { password : newPassword } ) ; return new APICall ( { action : "account/password/reset/" + token , type : 'POST' , data : payload , processResponse : APICall . basicResponse , options : options } ) ; }
Change the password for an account from the token received from password reset.
@param {string} token The token for password reset. Usually received by email.
@param {string} newPassword The password to assign to the user.
@param {object} [options] Override defaults set on WebService. See WebService constructor for parameters.
@return {APICall} An APICall instance for the web service request used to attach events.
Change the password for an account from the token received from password reset .