Firebase Authentication: Password must contain capital letter

后端 未结 2 718
旧时难觅i
旧时难觅i 2020-12-11 11:30

My application is linked with firebase database and authentication.

When a user creates an account, the only requirements for the password are for it to be 6 charact

2条回答
  •  攒了一身酷
    2020-12-11 12:28

    There is no way to configure Firebase Authentication's rules for password strength.

    Also see

    • Password Requirements when making an account with firrebase
    • Firebase Password Validation allowed regex.

    You can (and should ) restrict it from your code. But you can't prevent malicious users from bypassing this by calling the API directly.

    If the password strength is a hard requirement for your app, consider implementing custom authentication. This example of custom username (instead of email) and password authentication might be helpful.

提交回复
热议问题