Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun-user-web
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-backend
liyeyun-user-web
Commits
a44cbde1
Commit
a44cbde1
authored
Dec 01, 2023
by
yaobaizheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送次数 密码正则校验
parent
176783e3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ForgetVo.java
src/main/java/com/lyy/user/moudle/user/vo/ForgetVo.java
+1
-1
LoginVo.java
src/main/java/com/lyy/user/moudle/user/vo/LoginVo.java
+1
-1
RegisterVo.java
src/main/java/com/lyy/user/moudle/user/vo/RegisterVo.java
+2
-2
No files found.
src/main/java/com/lyy/user/moudle/user/vo/ForgetVo.java
View file @
a44cbde1
...
...
@@ -24,7 +24,7 @@ public class ForgetVo {
@NotEmpty
(
message
=
"密码不能为空"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度需要在6到20之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?
.
]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
@ApiModelProperty
(
value
=
"密码"
,
required
=
true
)
private
String
password
;
...
...
src/main/java/com/lyy/user/moudle/user/vo/LoginVo.java
View file @
a44cbde1
...
...
@@ -35,7 +35,7 @@ public class LoginVo {
@NotEmpty
(
message
=
"密码不能为空"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度需要在6到20之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?
.
]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
// @Pattern(regexp = "^(?=.*[a-zA-Z])(?=.*\\\\d)(?=.*[@$!%*#?&])[A-Za-z\\\\d@$!%*#?&]{6,20}$", message = "密码长度必须大于等于6位,小于等于20")
@ApiModelProperty
(
value
=
"密码"
,
required
=
true
)
private
String
password
;
...
...
src/main/java/com/lyy/user/moudle/user/vo/RegisterVo.java
View file @
a44cbde1
...
...
@@ -24,7 +24,7 @@ public class RegisterVo {
@NotEmpty
(
message
=
"密码不能为空"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度需要在6到20之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?
.
]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
@ApiModelProperty
(
value
=
"密码"
,
required
=
true
)
private
String
password
;
@NotEmpty
(
message
=
"手机号不能为空"
)
...
...
@@ -37,7 +37,7 @@ public class RegisterVo {
@NotEmpty
(
message
=
"密码不能为空"
)
@Size
(
min
=
6
,
max
=
20
,
message
=
"密码长度需要在6到20之间"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
@Pattern
(
regexp
=
"^[a-zA-Z0-9~!@#$%^&*()_+?
.
]{6,20}$"
,
message
=
"密码长度必须大于等于6位,小于等于20"
)
@ApiModelProperty
(
value
=
"确认密码"
,
required
=
true
)
private
String
checkPassword
;
}
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