Closed
Description
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.
Therefore, user's can't relogin because their email isn't associated to their username.
Here's a snippet of the Android code:
ParseUser user = new ParseUser();
if( ParseAnonymousUtils.isLinked(ParseUser.getCurrentUser()) ) {
user = ParseUser.getCurrentUser(); // Sign Up current anonymous user
}
user.setUsername(email);
user.setPassword(password);
user.setEmail(email);
user.put("firstName", firstName);
user.put("lastName", lastName);
user.signUpInBackground(new SignUpCallback() {
public void done(ParseException e) {
if (e == null) {
saveInstallation(new SaveCallback() {
@Override
public void done(ParseException e) {
if( callback != null ) {
callback.onSuccess();
}
}
});
} else {
// Sign up didn't succeed. Look at the ParseException
// to figure out what went wrong
if( callback != null ) {
callback.onFailure(e.getMessage());
}
}
}
});
Any ideas on why this is happening? Thanks!
Metadata
Metadata
Assignees
Labels
No labels