Open truongnguyenptit opened 7 years ago
In Android show message "There was an unexpected error, please try again later." but on dashboard account already exist. This is my code:
RegistrationForm registrationData = new RegistrationForm(MyPreference.getUserEmail(context), password); registrationData.setGivenName(MyPreference.getFirstName(context)) .setSurname(MyPreference.getLastName(context)); Stormpath.register(registrationData, new StormpathCallback() { @Override public void onSuccess(Void aVoid) { mView.setLoading(false); mView.registerSuccess(); }
@Override public void onFailure(StormpathError error) { mView.registerFailure(error.status(), error.message()); mView.setLoading(false); } });
In Android show message "There was an unexpected error, please try again later." but on dashboard account already exist. This is my code:
RegistrationForm registrationData = new RegistrationForm(MyPreference.getUserEmail(context), password); registrationData.setGivenName(MyPreference.getFirstName(context)) .setSurname(MyPreference.getLastName(context)); Stormpath.register(registrationData, new StormpathCallback() {
@Override
public void onSuccess(Void aVoid) {
mView.setLoading(false);
mView.registerSuccess();
}