-
-
Notifications
You must be signed in to change notification settings - Fork 735
Closed
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed
Description
I got error message Parse::UserCannotBeAlteredWithoutSessionError
Please tell me why?
if (ParseUser.getCurrentUser() != null) {
ParseUser currentUser = ParseUser.getCurrentUser();
if (edtEmail.getText().toString().length() > 0) {
currentUser.setEmail(edtEmail.getText().toString());
}
currentUser.setUsername(edtUsername.getText().toString());
currentUser.put(Constants.K_FE_PARSE_USER_BIO, edtBio.getText().toString().trim());
currentUser.put(Constants.K_FE_PARSE_USER_LOCATION, edtLocation.getText().toString().trim());
currentUser.put(Constants.K_FE_PARSE_USER_HEIGHT, sbHeight.getProgress());
if (edtPassword.getText().toString().length() > 1) {
currentUser.setPassword(edtPassword.getText().toString());
}
if (countryCode == null) {
countryCode = new CountryCodes().getCode(edtLocation.getText().toString());
}
currentUser.put(Constants.K_FE_PARSE_USER_COUNTRY_CODE, countryCode);
final MaterialDialog dialog = MaterialDialogUtils.createProgressDialog(activity);
dialog.show();
currentUser.saveInBackground(new SaveCallback() {
@Override
public void done(ParseException e) {
dialog.dismiss();
if (e != null) {
ParseManager.getInstance().checkAndShowErrorMessage(activity, e);
} else {
if (isNeedToSendEmail) {
ParseUser currentUser = ParseUser.getCurrentUser();
if (currentUser != null) {
ParseManager.getInstance().sendVerifyEmailTo(activity, currentUser.getEmail(), currentUser.getObjectId(), currentUser.getString(Constants.K_FE_PARSE_USER_FIRST_NAME));
}
}
}
}
});
}
Metadata
Metadata
Assignees
Labels
type:bugImpaired feature or lacking behavior that is likely assumedImpaired feature or lacking behavior that is likely assumed