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

Don't trigger beforeSave when logging in with a provider #702

Merged
merged 2 commits into from
Feb 29, 2016
Merged

Don't trigger beforeSave when logging in with a provider #702

merged 2 commits into from
Feb 29, 2016

Conversation

simonbengtsson
Copy link
Contributor

Currently beforeSave is called while logging in with a provider such as facebook which feels strange as the user is never modified. It is also a difference from api.parse.com. Logging in with a provider sends a create request which currently is short circuited in RestWrite.js if the user has already signed up. This PR moves that short circuiting code before the triggering of the beforeSave which means it will no longer be called on logins. More info can be found in #623. I closed that PR as I thought the issue was fixed, but turns out I was wrong. Also added a test for it in this PR.

@gfosco
Copy link
Contributor

gfosco commented Feb 29, 2016

Looks good to me... 👍

gfosco added a commit that referenced this pull request Feb 29, 2016
Don't trigger beforeSave when logging in with a provider
@gfosco gfosco merged commit d9f1e00 into parse-community:master Feb 29, 2016
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

Successfully merging this pull request may close these issues.

3 participants