stormpath-sdk-android
stormpath-sdk-android copied to clipboard
Register Error "There was an unexpected error, please try again later."
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<Void>() { @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);
}
});