{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1340","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1340/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1340/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1340/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/1340","id":145410702,"number":1340,"title":"Email isn't set as username on signup","user":{"login":"meilers","id":2792041,"avatar_url":"https://avatars.githubusercontent.com/u/2792041?v=3","gravatar_id":"","url":"https://api.github.com/users/meilers","html_url":"https://github.com/meilers","followers_url":"https://api.github.com/users/meilers/followers","following_url":"https://api.github.com/users/meilers/following{/other_user}","gists_url":"https://api.github.com/users/meilers/gists{/gist_id}","starred_url":"https://api.github.com/users/meilers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meilers/subscriptions","organizations_url":"https://api.github.com/users/meilers/orgs","repos_url":"https://api.github.com/users/meilers/repos","events_url":"https://api.github.com/users/meilers/events{/privacy}","received_events_url":"https://api.github.com/users/meilers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-04-02T19:51:32Z","updated_at":"2016-04-03T18:13:41Z","closed_at":null,"body":"I'm running the latest Parse-Server (2.1.6) and Parse (1.6.12) on my AWS EB instance. I noticed that when the user signs up via the iOS or Android clients with signUpInBackground, the user's username becomes a random string (e.g. \"username\": \"52927b5594f76b391cc6fbdcbe2da63c\"), even though I set the user's username to be the email. \r\n\r\nTherefore, user's can't relogin because their email isn't associated to their username.\r\n\r\nHere's a snippet of the Android code:\r\n\r\n```\r\n        ParseUser user = new ParseUser();\r\n\r\n        if( ParseAnonymousUtils.isLinked(ParseUser.getCurrentUser()) ) {\r\n            user = ParseUser.getCurrentUser();               // Sign Up current anonymous user\r\n        }\r\n\r\n        user.setUsername(email);\r\n        user.setPassword(password);\r\n        user.setEmail(email);\r\n        user.put(\"firstName\", firstName);\r\n        user.put(\"lastName\", lastName);\r\n\r\n        user.signUpInBackground(new SignUpCallback() {\r\n            public void done(ParseException e) {\r\n                if (e == null) {\r\n                    saveInstallation(new SaveCallback() {\r\n                        @Override\r\n                        public void done(ParseException e) {\r\n\r\n                            if( callback != null ) {\r\n                                callback.onSuccess();\r\n                            }\r\n                        }\r\n                    });\r\n                } else {\r\n                    // Sign up didn't succeed. Look at the ParseException\r\n                    // to figure out what went wrong\r\n                    if( callback != null ) {\r\n                        callback.onFailure(e.getMessage());\r\n                    }\r\n                }\r\n            }\r\n        });\r\n```\r\n\r\nAny ideas on why this is happening? Thanks!"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/205024024","html_url":"https://github.com/ParsePlatform/parse-server/issues/1340#issuecomment-205024024","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1340","id":205024024,"user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T18:13:41Z","updated_at":"2016-04-03T18:13:41Z","body":"yeah, that may be related as you may introduce a race condition here... ParseAnonymousUtils.logIn will save your user anyway"}}