Commit 42ae619c authored by 王建威's avatar 王建威

修改密码正则

parent 68843985
......@@ -51,7 +51,7 @@
"mode": "history",
"base": "/uni"
},
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/test/1.0.13/",
"publicPath": "https://dbc-static.oss-cn-beijing.aliyuncs.com/dbc-shop/uni/mirror/1.0.13/",
"optimization": {
"treeShaking": {
"enable": true
......
......@@ -33,7 +33,7 @@
},
methods: {
checkPass() {
const reg = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,}$/;
const reg = /^[0-9a-zA-Z_]{6,}$/;
if(this.new_password !== this.new_password_repeat) {
uni.showToast({
title: '两次密码输入不一致',
......@@ -43,7 +43,7 @@
}
if(!reg.test(this.new_password)) {
uni.showToast({
title: '密码至少包含字母/数字,长度不小于6位',
title: '密码由字母、数字或下划线组成,长度不小于6位',
icon: 'none',
duration: 2000
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment