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

Session gets destroyed on cloud code save User #4255

Closed
jjdp opened this issue Oct 13, 2017 · 1 comment
Closed

Session gets destroyed on cloud code save User #4255

jjdp opened this issue Oct 13, 2017 · 1 comment

Comments

@jjdp
Copy link

jjdp commented Oct 13, 2017

I'm changing the username and password for internal purposes and then returning the data to the client. I also noticed that there is also no new session returned.

var user = new Parse.User();
user.id = userId;

user.set("username", username);
user.set("password", password);

return user.save(null, {useMasterKey: true});

Is this normal behavior?

@flovilmart
Copy link
Contributor

flovilmart commented Oct 23, 2017

you can pass revokeSessionOnPasswordReset: false to your options if you don't want the sessions to be revoked when resetting the password.

This is actually a security feature, and part of an issue tracked #3289

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

2 participants