Firebase,密码重置不断收到错误“发生内部错误。 [错误代码:13]“安卓 [英] Firebase, password reset keep getting error "An internal error has occured. [ Error code: 13 ]" android

查看:179
本文介绍了Firebase,密码重置不断收到错误“发生内部错误。 [错误代码:13]“安卓的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近转到了新的firebase。当我使用遗留代码时,我能够重置用户电子邮件没有问题。现在,随着新的firebase我不断收到错误发生内部错误[错误代码:13]。即使当我点击我的应用程序控制台上的密码重置按钮,我在控制台上得到相同的错误消息。

这里是我的代码:



pre> private void resetPassword(){
String email = mEmailEditText.getText()。toString();

FirebaseAuth auth = FirebaseAuth.getInstance();

auth.sendPasswordResetEmail(email)
.addOnCompleteListener(new OnCompleteListener< Void>(){
@Override
public void onComplete(@NonNull Task< Void> task ){
if(task.isSuccessful()){
Toast.makeText(LoginActivity.this,R.string.sent_temp_password,
Toast.LENGTH_LONG).show();



$)
.addOnFailureListener(new OnFailureListener(){
@Override
public void onFailure(@NnNull Exception e ){
Log.i(TAG,e.getMessage());
}
});



$ b $ p
$ b

为什么会出现这种情况将不胜感激!

解决方案

我最近也切换到新的Firebase控制台。我在身份验证方面遇到很多问题,找不到任何解决方案。我在文件上备份了数据库和规则,然后删除了Firebase项目并创建了一个新项目(从头开始 ),重新创建了Firebase项目,除了保存的数据库和规则提前)。有效。我认为将Firebase项目从旧的控制台转换为新的Firebase控制台存在很多问题。



如果您没有找到其他解决方案,我建议您执行同样的,也不需要太长时间。


I have recently switched to the new firebase. When I was using the legacy code I was able to reset the users email with no problem. Now with the new firebase I keep getting the error "An internal error has occurred. [ Error code: 13 ]". Even when I hit the password reset button on my app console I get the same error message on the console. I also followed all the instructions from the site on how to reset the users password.

Here is my code:

private void resetPassword() {
    String email = mEmailEditText.getText().toString();

    FirebaseAuth auth = FirebaseAuth.getInstance();

    auth.sendPasswordResetEmail(email)
        .addOnCompleteListener(new OnCompleteListener<Void>() {
            @Override
            public void onComplete(@NonNull Task<Void> task) {
                if (task.isSuccessful()) {
                    Toast.makeText(LoginActivity.this, R.string.sent_temp_password,
                        Toast.LENGTH_LONG).show();


                }
            }
        })
    .addOnFailureListener(new OnFailureListener() {
        @Override
        public void onFailure(@NonNull Exception e) {
            Log.i(TAG, e.getMessage());
        }
    });
}

Any help as to why this is occurring would be greatly appreciated!

解决方案

I have also recently switched to the new Firebase console. I had many problems with authentication and I couldn't find any solutions. I backed up on a file the database and the rules, then I deleted the Firebase project and created a new one (from scratch, recreated the Firebase project, except for the database and the rules that I saved in advance). It worked. I guess there are many problems with converting a Firebase project from the old console to the new Firebase console.

If you don't find any other solution I recommend you do the same, it doesn't take too long.

这篇关于Firebase,密码重置不断收到错误“发生内部错误。 [错误代码:13]“安卓的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆