当前位置:网站首页>js验证复杂密码
js验证复杂密码
2022-07-26 21:15:00 【-耿瑞-】
这里放弃了特殊符号的校验 因为我们开发的系统大部分密码中不支持有特殊符号 会导致后端不好加密解析
export function checkpassword(value){
return /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[^]{8,16}$/.test(value)
};
本方法 验证 用户密码 必须 包含 一个或一个以上大小字母 一个或一个以上大写字母 一个或一个以上数字 且不能少于8位
边栏推荐
- Content management tools, blue bookmarks are enough
- 七月集训(第26天) —— 并查集
- Flask对token的解码&挂载&装饰器&七牛云上传
- 知识库工具 | 微网站、文档中心、形象展示页拖拽即可生成(附模板,直接用)
- 深入源码剖析String类为什么不可变?(还不明白就来打我)
- Is it safe to open an account on flush? How to choose a securities firm for opening an account
- Technology sharing | do you know the functions of the server interface automated testing and requests library?
- 也谈数据治理
- 安全浏览器“隐身”模式可以查看历史记录吗?
- Japan approves the export of EUV photoresist to South Korea, and the crisis of Samsung and SK Hynix may be alleviated
猜你喜欢

5、 Applet error: message:error: system error, error code: 80058, desc of scope userLocation is empty

Summer vacation daily question week 7:7.18 - 7.24

京东一面:Redis 如何实现库存扣减操作?如何防止商品被超卖?

Attack and defense world ----- ics-07

一篇让小百彻底搞懂性能调优

6、 Wechat applet release process

FreeRTOS个人笔记-事件

day07-

Oppo self-developed large-scale knowledge map and its application in digital intelligence engineering

JMeter自定义日志与日志分析
随机推荐
Pytorch 使用RNN模型构建人名分类器
方法重载与方法重写
OPPO 自研大规模知识图谱及其在数智工程中的应用
[shutter -- geTx] pop up - dialog, snackBar, bottomsheet
现货黄金操作指南与建议(上)
day07-
知识库工具 | 微网站、文档中心、形象展示页拖拽即可生成(附模板,直接用)
FreeRTOS个人笔记-软件定时器
OPPO 自研大规模知识图谱及其在数智工程中的应用
FreeRTOS personal notes - Events
伦敦银外汇走势理解与实操
Technology sharing | do you know the functions of the server interface automated testing and requests library?
day07-
同花顺上面开户安全吗,开户怎么选券商
Pytorch torch.add() torch.add_() 用法
Also on Data Governance
[MySql]substr用法-查询表的某个字段的具体位数的值
成功上岸了自动化测试岗,最高月薪15.4K,自己真棒~
拼多多获得搜索词推荐 API
JDBC operation and entry case of MySQL