Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zlmy-cloud
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
zlmy
zlmy-cloud
Commits
177ea358
Commit
177ea358
authored
Sep 09, 2025
by
鲁鸿波
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_2.6.0' into dev_2.6.0
parents
ef9ec5c5
936f2b08
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
IamUserController.java
...a/com/testor/module/iam/controller/IamUserController.java
+1
-1
IamSysUserServiceImpl.java
...testor/module/iam/service/impl/IamSysUserServiceImpl.java
+6
-0
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/iam/controller/IamUserController.java
View file @
177ea358
...
@@ -77,7 +77,7 @@ public class IamUserController {
...
@@ -77,7 +77,7 @@ public class IamUserController {
@PostMapping
({
"/getToken"
})
@PostMapping
({
"/getToken"
})
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
BaseResponse
<
TokenResponse
>
getToken
(
@Valid
@RequestBody
IamLoginDto
iamLoginDto
){
public
BaseResponse
<
TokenResponse
>
getToken
(
@Valid
@RequestBody
IamLoginDto
iamLoginDto
){
return
iamSysUserService
.
getToken
(
iamLoginDto
);
return
iamSysUserService
.
getToken
(
iamLoginDto
);
}
}
@ApiOperation
(
@ApiOperation
(
...
...
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/iam/service/impl/IamSysUserServiceImpl.java
View file @
177ea358
...
@@ -261,6 +261,12 @@ public class IamSysUserServiceImpl extends SuperServiceImpl<IamSysUserDao, IamSy
...
@@ -261,6 +261,12 @@ public class IamSysUserServiceImpl extends SuperServiceImpl<IamSysUserDao, IamSy
for
(
IamUserMapping
iamUserMapping
:
byIamUserId
)
{
for
(
IamUserMapping
iamUserMapping
:
byIamUserId
)
{
SysUser
byId
=
sysUserService
.
getById
(
iamUserMapping
.
getUserId
());
SysUser
byId
=
sysUserService
.
getById
(
iamUserMapping
.
getUserId
());
if
(
Objects
.
isNull
(
byId
)){
continue
;
}
if
(!
byId
.
getStatus
().
equals
(
StatusEnum
.
USE
.
getCode
())){
continue
;
}
//添加验证id
//添加验证id
String
uuid
=
UUID
.
randomUUID
().
toString
();
String
uuid
=
UUID
.
randomUUID
().
toString
();
redisTemplate
.
opsForValue
().
set
(
uuid
,
byId
.
getUserId
(),
2
,
TimeUnit
.
MINUTES
);
redisTemplate
.
opsForValue
().
set
(
uuid
,
byId
.
getUserId
(),
2
,
TimeUnit
.
MINUTES
);
...
...
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