Skip to content

Fix issue #2134: creating an anonymous user #2155

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

Merged
merged 4 commits into from
Jun 27, 2016

Conversation

hmoqhim
Copy link
Contributor

@hmoqhim hmoqhim commented Jun 27, 2016

It seems to me issue #2134 is a bug (Parse Documentation (https://parse.com/docs/rest/guide#users-linking). Parse server should return the generated username when an anonymous user signs up. This PR is an attempt to resolve the issue.

@@ -790,6 +791,10 @@ RestWrite.prototype.runDatabaseOperation = function() {
.then(response => {
response.objectId = this.data.objectId;
response.createdAt = this.data.createdAt;

if (this.hasUserNameGen)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add curly braces around statement.

@flovilmart
Copy link
Contributor

Thanks for the PR!
A few nits and we'll be able to merge that one.

@ghost
Copy link

ghost commented Jun 27, 2016

@hmoqhim updated the pull request.

@flovilmart flovilmart merged commit a861c4e into parse-community:master Jun 27, 2016
@hmoqhim hmoqhim deleted the anonymousUser branch June 27, 2016 04:07
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