src/user.js
function(oldPassword, newPassword, options) {
        var route = 'users/' + this.id + '/updatePassword';
        var params = {
          old_password: oldPassword,
          new_password: newPassword,
        };
        var request = AVRequest(route, null, null, 'PUT', params, options);
        return request;
      }
function(oldPassword, newPassword, options) {
        var route = 'users/' + this.id + '/updatePassword';
        var params = {
          old_password: oldPassword,
          new_password: newPassword,
        };
        var request = AVRequest(route, null, null, 'PUT', params, options);
        return request;
      }
function ( oldPassword , newPassword , options ) { var route = 'users/' + this . id + '/updatePassword' ; var params = { old_password : oldPassword , new_password : newPassword , } ; var request = AVRequest ( route , null , null , 'PUT' , params , options ) ; return request ; }
Update user's new password safely based on old password.
@param {String} oldPassword the old password.
@param {String} newPassword the new password.
@param {AuthOptions} options
Update user s new password safely based on old password .