Skip to content

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