Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User setPassword cause Object not found again #342

Closed
flessard opened this issue Feb 10, 2016 · 6 comments
Closed

User setPassword cause Object not found again #342

flessard opened this issue Feb 10, 2016 · 6 comments

Comments

@flessard
Copy link
Contributor

Why the field resetPasswordCode become empty on save but the password cause Object not found error

user.set('resetPasswordCode', '');
user.setPassword(request.params.password);
return user.save(null, { useMasterKey: true });

Anyone can help me or can point me how to fix this bug ?
Or what is the best way to update password user in cloud code ?

if i comment this line, everything Is working perfectly.

@gfosco
Copy link
Contributor

gfosco commented Feb 10, 2016

This is due to a bug which like #346 will be fixed by #254. The code is failing trying to delete the session for the user. The object not found error appears to be from that (and the user change was saved, I believe.) Will get #254 in soon and we should have a new release version today or tomorrow.

@flessard
Copy link
Contributor Author

@gfosco Nice thanks !

@flessard
Copy link
Contributor Author

@gfosco Bug still present in 2.0.8

@flessard flessard reopened this Feb 11, 2016
@polo2244
Copy link

@flessard One Quick question. I used the parse-server-example and deployed to Heroku with the deploy button.
As far as i know, that the parse-server-example has not yet been updated to the latest version (2.0.8).

May i ask how are you updating your parse-server version ?

@flessard
Copy link
Contributor Author

@polo2244 Try to change the version of parse-server in package.json to 2.0.8.

@flessard
Copy link
Contributor Author

fix whit #430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants