Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e003601d
authored
2025-08-19 10:21:08 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
011e8080
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
lego-system/src/main/java/com/lego/system/service/SysRegisterService.java
lego-system/src/main/java/com/lego/system/service/SysRegisterService.java
View file @
e003601
...
...
@@ -102,7 +102,8 @@ public class SysRegisterService {
// 框架登录不限制从什么表查询 只要最终构建出 LoginUser 即可
SysUser
user
=
loadUserByUsername
(
username
);
checkLogin
(
LoginType
.
PASSWORD
,
username
,
()
->
!
BCrypt
.
checkpw
(
password
,
user
.
getPassword
()));
return
EncryptUtils
.
encryptByAes
(
String
.
valueOf
(
System
.
currentTimeMillis
()+
1000
*
60
*
60
*
24
*
180
));
String
token
=
EncryptUtils
.
encryptByAes
(
String
.
valueOf
(
System
.
currentTimeMillis
()+
1000
*
60
*
60
*
24
*
90
));
return
token
;
}
/**
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment