stormpath-sdk-android icon indicating copy to clipboard operation
stormpath-sdk-android copied to clipboard

Register Error "There was an unexpected error, please try again later."

Open truongnguyenptit opened this issue 8 years ago • 0 comments

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);
        }
    });

truongnguyenptit avatar Feb 25 '17 02:02 truongnguyenptit