Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5028

Password reset throws Internal Server Error

$
0
0

Hi @tjenicek,
The reset is a query param, and not payload body.

this.resetpassword = function(data) {
  var deferred = $q.defer();
  var ep = 'https://api.removed.com/api/v2/user/password?reset=true';
  var options = {
    'email': data.email
  }

  $http.post(ep, options).then(function(result) {
    console.log(result);
  }, function(error) {
    deferred.reject({'error':{'email':'no-lookup','inner':error}});
  });
  
  return deferred.promise;
};

Viewing all articles
Browse latest Browse all 5028

Trending Articles