Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首开风险隐患双控平台
BCDH-APP
Commits
fc0e1ef7
Commit
fc0e1ef7
authored
Sep 28, 2022
by
王李辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码校验修改至少为二级
parent
860bb885
Pipeline
#8858
passed with stage
in 5 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
src/views/my/resetPas.vue
src/views/my/resetPas.vue
+11
-5
No files found.
src/views/my/resetPas.vue
View file @
fc0e1ef7
...
...
@@ -30,9 +30,9 @@
:rules=
"[
{ required: true, message: '请填写密码' },
{
message: '密码必须大于
6个字符小于2
0个字符',
message: '密码必须大于
8个字符小于3
0个字符',
validator: (val) => {
return val['length'] >=
6
&&
val['length']
<
2
0
;
return val['length'] >=
8
&&
val['length']
<
3
0
;
},
},
]"
...
...
@@ -40,7 +40,7 @@
<!-- 密码等级提示 -->
<van-cell-group>
<div
class=
"intensity"
>
<div
style=
"width: 8.2em;
margin-right: 0.32rem;
"
></div>
<div
style=
"width: 8.2em;"
></div>
<div>
<div
class=
"pass-level"
>
<span
class=
"psdText"
>
密码强度
</span>
...
...
@@ -61,9 +61,9 @@
:rules=
"[
{ validator, required: true, message: '二次密码输入不一致' },
{
message: '密码必须大于等于
6个字符小于2
0个字符',
message: '密码必须大于等于
8个字符小于3
0个字符',
validator: (val) => {
return val['length'] >=
6
&&
val['length']
<
2
0
;
return val['length'] >=
8
&&
val['length']
<
3
0
;
},
},
]"
...
...
@@ -105,6 +105,12 @@ export default {
return
this
.
form
.
newPassword
==
val
;
},
onSubmit
(
val
)
{
// 判断level数组是否含有middle
let
isMiddleLevel
=
this
.
level
.
includes
(
'
middle
'
)
if
(
!
isMiddleLevel
){
this
.
$toast
.
fail
(
"
密码等级较低
"
)
return
}
this
.
$toast
.
loading
({
message
:
"
请求中...
"
,
forbidClick
:
true
,
...
...
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