Commit 9248ab66 by peijy

密码验证 报名超时限制

parent c2ef6744
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -84,8 +84,8 @@ export default { ...@@ -84,8 +84,8 @@ export default {
for (let i = 0; i < this.identifyCode.length; i++) { for (let i = 0; i < this.identifyCode.length; i++) {
this.drawText(ctx, this.identifyCode[i], i) this.drawText(ctx, this.identifyCode[i], i)
} }
this.drawLine(ctx) // this.drawLine(ctx)
this.drawDot(ctx) // this.drawDot(ctx)
}, },
drawText(ctx, txt, i) { drawText(ctx, txt, i) {
ctx.fillStyle = this.randomColor(this.colorMin, this.colorMax) ctx.fillStyle = this.randomColor(this.colorMin, this.colorMax)
...@@ -138,4 +138,4 @@ export default { ...@@ -138,4 +138,4 @@ export default {
margin-top: 5px; margin-top: 5px;
} }
} }
</style> </style>
\ No newline at end of file
...@@ -128,7 +128,8 @@ export default { ...@@ -128,7 +128,8 @@ export default {
], ],
password: [ password: [
{required: true, trigger: "blur", message: "请输入您的密码"}, {required: true, trigger: "blur", message: "请输入您的密码"},
{min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur'} {pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{6,20}$/, message: '用户密码长度为 6 到 20 个字符,且必须包含字母、数字以及特殊符号', trigger: 'blur'}
], ],
code: [{required: true, trigger: "change", message: "请输入验证码"}, code: [{required: true, trigger: "change", message: "请输入验证码"},
{required: true, validator: validateCode, trigger: "blur"} {required: true, validator: validateCode, trigger: "blur"}
......
...@@ -126,7 +126,8 @@ export default { ...@@ -126,7 +126,8 @@ export default {
], ],
password: [ password: [
{required: true, trigger: "blur", message: "请输入您的密码"}, {required: true, trigger: "blur", message: "请输入您的密码"},
{min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur'} {pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{6,20}$/, message: '用户密码长度为 6 到 20 个字符,且必须包含字母、数字以及特殊符号', trigger: 'blur'}
], ],
confirmPassword: [ confirmPassword: [
{required: true, trigger: "blur", message: "请再次输入您的密码"}, {required: true, trigger: "blur", message: "请再次输入您的密码"},
......
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