Invalid login options at Parse.com

I use the Parse Loginbackground method to authenticate my users. But even though I use the correct credentials, it throws an invalid login option, any idea why?

Here is my LoginActivity code:

    logInButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            final String muserName = userNameL.getText().toString();
            final String mPassword = passowrdL.getText().toString();

             ParseUser.logInInBackground(muserName,mPassword,new LogInCallback() {
                 @Override
                 public void done(ParseUser parseUser, ParseException e) {

                     if(parseUser != null) {

                         Intent intent = new Intent(LogInActivity.this, MainActivity.class);
                         intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                         intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
                         startActivity(intent);
                     } else
                     {
                         AlertDialog.Builder Builder = new AlertDialog.Builder (LogInActivity.this);
                         Builder.setMessage(e.getMessage());
                         Builder.setTitle(R.string.Error);
                         Builder.setPositiveButton(android.R.string.ok,null);
                         AlertDialog dialog = Builder.create();
                         dialog.show();
                     }


                 }
             });
+4
source share
1 answer

View the code you posted on another site

EditText text_name = (EditText) findViewById (R.id.loginpage_username); The string login_username = text_name.getText (). ToString ();

EditText text_password = (EditText) findViewById (R.id.loginpage_password); String login_password = text_name.getText(). ToString();// text_password

0

All Articles