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
63b24814
Commit
63b24814
authored
Dec 16, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】 用户名正则
parent
4a7781be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
MemberServiceImpl.java
...office/modules/manage/service/impl/MemberServiceImpl.java
+2
-6
No files found.
src/main/java/io/office/modules/manage/service/impl/MemberServiceImpl.java
View file @
63b24814
...
...
@@ -53,11 +53,6 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
public
static
void
main
(
String
[]
args
)
{
RedisTemplate
<
String
,
String
>
redisTemplate
=
new
RedisTemplate
<>();
}
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
...
...
@@ -286,7 +281,8 @@ public class MemberServiceImpl extends ServiceImpl<MemberDao, MemberEntity> impl
//用户名校验
public
boolean
checkUserName
(
String
logname
)
{
String
t1
=
"^[0-9A-Za-z]{2,8}$"
;
//判断密码用户名和密码是否为数字,字母(数字或字母)
String
t2
=
"^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{2,10}$"
;
//(数字和字母)
//String t2 = "^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{2,10}$";//(数字和字母)
String
t2
=
"^(?!\\d+$)[\\da-zA-Z]{2,8}$"
;
//(数字和字母 不能是纯数字)
if
(
logname
.
matches
(
t2
))
{
return
logname
.
matches
(
t2
);
}
else
{
...
...
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