Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-app-report
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
Administrator
xzxt-app-report
Commits
d46f2bb8
Commit
d46f2bb8
authored
Jan 12, 2023
by
wang_jiaxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加初始密码校验
parent
873bb1fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/main/java/org/springblade/modules/auth/utils/TokenUtil.java
+1
-1
No files found.
src/main/java/org/springblade/modules/auth/utils/TokenUtil.java
View file @
d46f2bb8
...
...
@@ -98,7 +98,7 @@ public class TokenUtil {
authInfo
.
setRealname
(
user
.
getTrueName
());
authInfo
.
setPhone
(
user
.
getTelephone
());
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
authInfo
.
setIsCs
(
user
.
getPasswordGxsj
()
==
null
?
"1"
:
ChronoUnit
.
MONTHS
.
between
(
LocalDate
.
parse
(
sdf
.
format
(
user
.
getPasswordGxsj
())),
LocalDate
.
parse
(
sdf
.
format
(
new
Date
())))
<
3
?
"0"
:
"1"
);
//
authInfo.setIsCs(user.getPasswordGxsj() == null ? "1" : ChronoUnit.MONTHS.between(LocalDate.parse(sdf.format(user.getPasswordGxsj())), LocalDate.parse(sdf.format(new Date()))) < 3 ? "0" : "1");
String
csmm
=
DigestUtil
.
encrypt
(
"AnXzxt#46"
);
authInfo
.
setIsCsmm
(
StringUtils
.
equals
(
csmm
,
user
.
getPassword
())
?
"1"
:
"0"
);
try
{
...
...
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