小编Div*_*ffy的帖子

电子邮件地址格式错误的Firebase

嗨,我正在一个Android项目,我正在使用firebase作为后端,我正在建立一个注册和登录表单.当我注册时,代码运行良好.当我尝试使用" signInWithEmailAndPassword我正在收到错误时检索它.电子邮件地址格式错误的Firebase "

登录活动

public class LoginActivity extends AppCompatActivity {

    private EditText mLoginEmailField;
    private EditText mloginPassField;

    private Button mLoginbtn;
    private Button mNewAccountbtn;

    private DatabaseReference mDatabaseRefrence;





    private FirebaseAuth mAuth;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);



        mAuth = FirebaseAuth.getInstance();
        mLoginEmailField = (EditText) findViewById(R.id.loginEmailField);
        mloginPassField = (EditText) findViewById(R.id.loginPasswordField);

        mLoginbtn = (Button) findViewById(R.id.loginBtn);
        mNewAccountbtn = (Button) findViewById(R.id.newAccountbtn);
        mDatabaseRefrence = FirebaseDatabase.getInstance().getReference().child("Users");


        mNewAccountbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent rigisterIntent = new Intent(LoginActivity.this,RigisterActivity.class);
                rigisterIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
                startActivity(rigisterIntent);
            }
        }); …
Run Code Online (Sandbox Code Playgroud)

android firebase firebase-authentication

9
推荐指数
1
解决办法
1万
查看次数

检查对象数组中的所有值是否都等于 false 并在 React 中返回 true

我试图检查数组中的所有对象是否等于 false ,如果是,则在反应中返回 true 。我的对象数组如下所示

[{"filter":"ASIA","key":0,"isChecked":false},{"filter":"INDIA","key":1,"isChecked":false},{"filter":"MANDYA","key":2,"isChecked":false},{"filter":"GOA","key":3,"isChecked":false},{"filter":"KERALA","key":4,"isChecked":false}]
Run Code Online (Sandbox Code Playgroud)

我尝试使用everysome来编写以下代码:

let check = arr.some(element => element.isChecked === false);
Run Code Online (Sandbox Code Playgroud)

let check = arr.every(element => element.isChecked === false);
Run Code Online (Sandbox Code Playgroud)

上述两个语句都返回 false

javascript arrays reactjs

2
推荐指数
1
解决办法
4029
查看次数

如何将azure blob存储数据获取到Azure应用程序服务上托管的React应用程序中

您好,我正在开发 React 项目,我想从 azure blob 存储下载巨大的文件(超过 2.5GB)以响应应用程序,(场景是当用户单击导出按钮时,我在 azure blob 存储中有文本文件,我希望它们是下载到本地系统),我一直在寻找几种方法,因为我是天蓝色的新手,我有点困惑

使用azure AD,我们可以访问azure blob存储,但由于我的应用程序托管在应用程序服务上,我们如何将这两个连接在一起,或者我们可以通过azure应用程序服务直接访问文件?

我目前正在考虑的方法:这里

azure azure-storage reactjs azure-active-directory azure-appservice

2
推荐指数
1
解决办法
4710
查看次数