简体   繁体   English

我无法使用 Firebase 身份验证使用电子邮件和密码登录

[英]I can't login with Email & Password using Firebase Authentication

I am facing problem, When I try to login with email/password via Firebase Authentication.我遇到了问题,当我尝试通过 Firebase 身份验证使用电子邮件/密码登录时。 I have already enable the email/password in SIGN-IN-METHOD tab.我已经在登录方法选项卡中启用了电子邮件/密码。 But whenever I signup in the same app then it allow me and record inserted in Firebase console user list, but when I try to login with the registered email & password I can't move forward, and the exception message is:但是每当我在同一个应用程序中注册时,它就会允许我将记录插入到 Firebase 控制台用户列表中,但是当我尝试使用注册的电子邮件和密码登录时,我无法继续,并且异常消息是:

The password is invalid or the user does not have a password.密码无效或用户没有密码。

For Login, my code is :对于登录,我的代码是:

FirebaseAuth auth=FirebaseAuth.getInstance();

auth.signInWithEmailAndPassword(email, password)
                        .addOnCompleteListener(LoginActivity.this, new OnCompleteListener<AuthResult>() {
                            @Override
                            public void onComplete(@NonNull Task<AuthResult> task) {
                                pb.dismiss();
                                if (task.isSuccessful()) {
                                    // Sign in success, update UI with the signed-in user's information
                                    Intent intent = new Intent(LoginActivity.this, DrawerActivity.class);
                                    startActivity(intent);
                                    finish();
                                } else {
                                    // If sign in fails, display a message to the user.
                                    //   Log.w("Tag", "Tag signInWithEmail:failure", task.getException());
                                    Log.i("Tags", "Tags signInWithEmail:failure" + task.getException());
                                    Toast.makeText(LoginActivity.this, "Authentication failed.",
                                            Toast.LENGTH_SHORT).show();

                                }


                            }
                        });

This may be when for example user SomeUser registered with email some_user@gmail.com and any password.例如,这可能是当用户 SomeUser 使用电子邮件 some_user@gmail.com 和任何密码注册时。 Then he signed in with google account of the same email and then tries to log in again using email of his google account.然后他使用同一电子邮件的谷歌帐户登录,然后尝试使用他的谷歌帐户的电子邮件再次登录。 In this case google removes password after user links his firebase account to google account.在这种情况下,谷歌会在用户将他的 firebase 帐户链接到谷歌帐户后删除密码。 Here are some details这里有一些细节

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何使用电子邮件身份验证的详细信息登录Firebase - How can i login to Firebase using the details of email authentication 如何将 Firebase 电话身份验证与电子邮件/密码身份验证联系起来? - How Can I Link Firebase Phone Authentication with Email/Password Authentication? 如何限制Firebase电子邮件登录中的错误密码尝试? - How can i limit the wrong password attempts in Firebase email login? 我无法登录。 即使我在Firebase中输入了电子邮件和密码,它仍会说错误日志记录 - I can't login. It keeps Saying Error Logging in eventhough I have entered the email and password as I input in Firebase 使用电子邮件和密码进行 Firebase 身份验证 - Firebase Authentication With Email & Password 自定义登录中的Firebase Android重置密码(不适用于电子邮件身份验证) - Firebase Android reset password in custom Login (not with email authentication) “ AUTHENTICATION DISABLED”,使用Firebase离子电子邮件/密码身份验证时出错 - “AUTHENTICATION DISABLED”, error using Firebase Ionic Email/Password Authentication 使用Firebase身份验证通过电子邮件/密码将Firebase连接到Android应用程序 - Connecting Firebase to Android application using Firebase authentication via email/password 在Firebase中,通过使用电子邮件和密码身份验证,我想使用push来添加其他用户数据 - In firebase by using email and password authentication, i want to additional user data using push Firebase 电子邮件和密码身份验证失败 - Firebase email and password authentication fails
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM