Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd-art-exam-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd-art-exam-web
Commits
9248ab66
Commit
9248ab66
authored
Apr 07, 2024
by
peijy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码验证 报名超时限制
parent
c2ef6744
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
6 deletions
+7
-6
package-lock.json
+0
-0
src/components/validate.vue
+3
-4
src/views/Entry.vue
+0
-0
src/views/Login.vue
+2
-1
src/views/Register.vue
+2
-1
No files found.
package-lock.json
View file @
9248ab66
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/validate.vue
View file @
9248ab66
...
@@ -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
src/views/Entry.vue
View file @
9248ab66
This diff is collapsed.
Click to expand it.
src/views/Login.vue
View file @
9248ab66
...
@@ -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"
}
...
...
src/views/Register.vue
View file @
9248ab66
...
@@ -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
:
"请再次输入您的密码"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment