Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
a782737e
Commit
a782737e
authored
Mar 29, 2021
by
shiwenbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
场站系统与购砂单位系统登录之后返回场站和购砂单位的id
parent
914e2de1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
RESTWarehouseUserAuthenticationSuccessHandler.java
...andler/RESTWarehouseUserAuthenticationSuccessHandler.java
+2
-0
SandUserAuthenticationSuccessHandler.java
...ication/handler/SandUserAuthenticationSuccessHandler.java
+2
-0
No files found.
backend/inz.authentication/src/main/java/com/beecode/inz/authentication/handler/RESTWarehouseUserAuthenticationSuccessHandler.java
View file @
a782737e
...
...
@@ -56,6 +56,7 @@ public class RESTWarehouseUserAuthenticationSuccessHandler extends SimpleUrlAuth
session
.
setAttribute
(
AuthcConstants
.
USERNAME
,
warehouseUser
.
getUsername
());
session
.
setAttribute
(
AuthcConstants
.
TELEPHONE
,
warehouseUser
.
getTelephone
());
session
.
setAttribute
(
AuthcConstants
.
TITLE
,
warehouseUser
.
getTitle
());
session
.
setAttribute
(
"stationId"
,
warehouseUser
.
getStationId
());
session
.
setAttribute
(
"mobile"
,
true
);
session
.
setMaxInactiveInterval
(
30
*
24
*
60
*
60
);
...
...
@@ -69,6 +70,7 @@ public class RESTWarehouseUserAuthenticationSuccessHandler extends SimpleUrlAuth
returnJson
.
put
(
AuthcConstants
.
USERNAME
,
warehouseUser
.
getUsername
());
returnJson
.
put
(
AuthcConstants
.
TELEPHONE
,
warehouseUser
.
getTelephone
());
returnJson
.
put
(
AuthcConstants
.
TITLE
,
warehouseUser
.
getTitle
());
returnJson
.
put
(
"stationId"
,
warehouseUser
.
getStationId
());
returnJson
.
put
(
AuthcConstants
.
MESSAGE
,
"success"
);
returnJson
.
put
(
AuthcConstants
.
TOKEN
,
attr
.
getSessionId
());
returnJson
.
put
(
AuthcConstants
.
TENANT
,
tenant
);
...
...
backend/inz.authentication/src/main/java/com/beecode/inz/authentication/handler/SandUserAuthenticationSuccessHandler.java
View file @
a782737e
...
...
@@ -55,6 +55,7 @@ public class SandUserAuthenticationSuccessHandler extends SimpleUrlAuthenticatio
request
.
getSession
().
setAttribute
(
AuthcConstants
.
USERNAME
,
SandUser
.
getUsername
());
request
.
getSession
().
setAttribute
(
AuthcConstants
.
TELEPHONE
,
SandUser
.
getTelephone
());
request
.
getSession
().
setAttribute
(
AuthcConstants
.
TITLE
,
SandUser
.
getTitle
());
request
.
getSession
().
setAttribute
(
"sandId"
,
SandUser
.
getSandId
());
request
.
getSession
().
setAttribute
(
"mobile"
,
true
);
request
.
getSession
().
setMaxInactiveInterval
(
30
*
24
*
60
*
60
);
...
...
@@ -67,6 +68,7 @@ public class SandUserAuthenticationSuccessHandler extends SimpleUrlAuthenticatio
returnJson
.
put
(
AuthcConstants
.
USERNAME
,
SandUser
.
getUsername
());
returnJson
.
put
(
AuthcConstants
.
TELEPHONE
,
SandUser
.
getTelephone
());
returnJson
.
put
(
AuthcConstants
.
TITLE
,
SandUser
.
getTitle
());
returnJson
.
put
(
"sandId"
,
SandUser
.
getSandId
());
returnJson
.
put
(
AuthcConstants
.
MESSAGE
,
"success"
);
returnJson
.
put
(
AuthcConstants
.
TOKEN
,
attr
.
getSessionId
());
returnJson
.
put
(
AuthcConstants
.
TENANT
,
tenant
);
...
...
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