Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
18b1f519
Commit
18b1f519
authored
Nov 18, 2024
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】密码问题
parent
fbad6b10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
MemberServiceImpl.java
...office/modules/manage/service/impl/MemberServiceImpl.java
+8
-7
No files found.
src/main/java/io/office/modules/manage/service/impl/MemberServiceImpl.java
View file @
18b1f519
...
@@ -340,16 +340,17 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
...
@@ -340,16 +340,17 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
public
boolean
checkPassWord
(
String
passWord
)
{
public
boolean
checkPassWord
(
String
passWord
)
{
String
t1
=
"^[0-9A-Za-z]{2,8}$"
;
//判断密码用户名和密码是否为数字,字母(数字或字母)
String
t1
=
"^[0-9A-Za-z]{2,8}$"
;
//判断密码用户名和密码是否为数字,字母(数字或字母)
String
t2
=
"^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,12}$"
;
//(数字和字母)
String
t2
=
"^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{5,12}$"
;
//(数字和字母)
if
(
passWord
.
matches
(
t2
))
{
String
t3
=
"^(?=.*[a-zA-Z])(?=.*[0-9!@#$%^&*()_+=-])[a-zA-Z0-9!@#$%^&*()_+=-]{8,20}$"
;
return
passWord
.
matches
(
t2
);
String
regex
=
"^(?=.*[a-z])(?=.*[A-Z0-9!@#$%^&*()_+=-])|(?=.*[A-Z])(?=.*[a-z0-9!@#$%^&*()_+=-])|(?=.*[0-9])(?=.*[a-zA-Z!@#$%^&*()_+=-])|(?=.*[!@#$%^&*()_+=-])(?=.*[a-zA-Z0-9])[a-zA-Z0-9!@#$%^&*()_+=-]{8,20}$"
;
}
else
{
return
passWord
.
matches
(
regex
);
//System.out.println("用户名只能是数字加字母,长度2-8位");
return
false
;
}
}
}
@Override
@Override
public
String
getVerificationCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
public
String
getVerificationCode
(
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
)
{
//验证码随机6位数字(验证码)
//验证码随机6位数字(验证码)
...
...
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