stormpath / stormpath-sdk-android

Android library for Stormpath
http://www.stormpath.com
Apache License 2.0
18 stars 15 forks source link

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

Open truongnguyenptit opened 7 years ago

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