hoodiehq-archive / hoodie-plugin-users

⛔ deprecated
Other
5 stars 9 forks source link

Getting the following error when calling resetPassword : #38

Closed idanb11 closed 9 years ago

idanb11 commented 9 years ago

After setting the smtp configuration in the admin panel I tried to use resetPassword and I get HoodieNotFoundError - Error message: Missing

PUT http://23.253.62.112:6004/_api/_users/org.couchdb.user%3A%24passwordReset%2Fidanb11%40gmail.com%2Fr149x7e 404 (Not Found) jquery.js:8625 n.ajaxTransport.k.cors.a.crossDomain.send jquery.js:8161 n.extend.ajax hoodie.js:7738 17.exports.requesthoodie.js:6341 10.exports.request hoodie.js:6460 (anonymous function) hoodie.js:7171 11.exports.withPreviousRequestsAborted hoodie.js:6459 10.exports.resetPassword hoodie.js:9159 26.angular.module.factory.angular.forEach.service.(anonymous function) controllers.js:59 $scope.hoodieResetPasswordangular.js:10903 gb.functionCall angular.js:19259 jc.(anonymous function).compile.d.on.fangular.js:12811 $get.h.$eval angular.js:12909 $get.h.$apply angular.js:19264 (anonymous function) jquery.js:4430 n.event.dispatch jquery.js:4116 n.event.add.r.handle

Please help resolving this.

Idanb11

idanb11 commented 9 years ago

Did anybody have any luck using the resetPassword method?

janl commented 9 years ago

@gr2m can you have a look?

janl commented 9 years ago

@idanb11 thank you for your report!

gr2m commented 9 years ago

@idanb11 I'm looking into it. I found the cause of the problem. Hoodie tries internally to subscribe to the passwordreset event once, and uses state.events.once, but it should be state.events.one. If you have time, you can look into it and get it fixed. If not I'll try to get it fixed tomorrow

janl commented 9 years ago

@gr2m see https://github.com/hoodiehq/hoodie.js/pull/411

gr2m commented 9 years ago

@idanb11 fixed via https://github.com/hoodiehq/hoodie.js/pull/411

idanb11 commented 9 years ago

OK great... How do I update my Hoodie to the latest version? Because running $ npm install doesn't change the versions...

janl commented 9 years ago

update the version number(s) in your package.json