Quantcast
Channel: DreamFactory Forum - Latest topics
Viewing all articles
Browse latest Browse all 1523

Password reset throws Internal Server Error

$
0
0

@tjenicek wrote:

Hello everyone,

The code below throws Internal Server Error and when I view the response in dev tools I see "Whoops, looks like something went wrong.". I have other calls to the API work fine so it appears to be specific to resetting passwords. I've also tried "/api/v2/user/password?reset=true" but I get the same error. Any help is appreciated. Thanks!

this.resetpassword = function(data) {
var deferred = $q.defer();
var ep = 'https://api.removed.com/api/v2/user/password';
var options = {
'email': data.email,
'reset': true
}
$http.post(ep, options).then(function(result) {
console.log(result);
}, function(error) {
deferred.reject({'error':{'email':'no-lookup','inner':error}});
});
return deferred.promise;
};

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 1523

Trending Articles