Firebase密码验证允许使用正则表达式 [英] Firebase Password Validation allowed regex

查看:127
本文介绍了Firebase密码验证允许使用正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



到目前为止,我知道有


  • 至少需要6个字符

  • 允许az

  • 允许AZ

  • 允许0-9

  • 允许使用特殊字符〜`!@#$%^& *()-_ + = |}] {[ :
  • 允许使用空格 如果这是例如,在我身边的验证正则表达式是 {6,} ?(或者我可以检查字段的长度)

    编辑:我认为它与 Google的正常密码要求,但只需要6个字符而不是8个。 解决方案

您的理解是正确的 - 唯一的要求是最少6 chars。



但是,如果你是buildi在Android / iOS应用程序中,我建议不要在您的应用程序中对验证逻辑进行硬编码,因为新用户注册请求由Firebase身份验证服务器处理。

I was wondering if anyone knew the official allowed passwords for Firebase's Email and Password Authentication API.

So far I understand that there is

  • a minimum of 6 characters required
  • a-z allowed
  • A-Z allowed
  • 0-9 allowed
  • special characters allowed ~`!@#$%^&*()-_+=|}]{["':;?/>.<,
  • white spaces allowed

If this is the case, would the regex for validation on my side just be {6,} ? (alternatively I could just check the length of the field)

EDIT: I assume it's similar to Google's normal password requirements but only requiring 6 characters instead of 8.

解决方案

Your understanding is correct - the only requirement is a minimum of 6 chars.

However, if you are building Android/iOS apps, I would suggest -not- to hardcode the validation logic in your app, since the new user signup request is handled by Firebase Auth server.

这篇关于Firebase密码验证允许使用正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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