Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
161c7fec
Commit
161c7fec
authored
Feb 12, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b96121f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
AuthRequestUtil.java
.../java/com/gic/haoban/manage/web/auth/AuthRequestUtil.java
+4
-3
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/auth/AuthRequestUtil.java
View file @
161c7fec
...
@@ -25,17 +25,18 @@ public class AuthRequestUtil {
...
@@ -25,17 +25,18 @@ public class AuthRequestUtil {
public
static
final
String
REDIS_LOGIN_USER_TOKEN_PREFIX
=
"GIC:HAOBAN:HAOBAN_MOBILE_APP:LOGIN_USER:"
;
public
static
final
String
REDIS_LOGIN_USER_TOKEN_PREFIX
=
"GIC:HAOBAN:HAOBAN_MOBILE_APP:LOGIN_USER:"
;
public
static
final
String
REDIS_FAKE_LOGIN_FLAG_PREFIX
=
"GIC:HAOBAN:HAOBAN_MOBILE_APP:FAKE_LOGIN_TOKEN:"
;
public
static
final
String
REDIS_FAKE_LOGIN_FLAG_PREFIX
=
"GIC:HAOBAN:HAOBAN_MOBILE_APP:FAKE_LOGIN_TOKEN:"
;
public
static
String
LOGIN_SESSION_KEY
=
"HAOBAN:LOGINUSER"
;
public
static
Object
getSessionUser
()
{
public
static
Object
getSessionUser
()
{
return
getSession
().
getAttribute
(
GlobalParams
.
LOGIN_SESSION_KEY
);
return
getSession
().
getAttribute
(
LOGIN_SESSION_KEY
);
}
}
public
static
void
setSessionUser
(
Object
obj
)
{
public
static
void
setSessionUser
(
Object
obj
)
{
getSession
().
setAttribute
(
GlobalParams
.
LOGIN_SESSION_KEY
,
obj
);
getSession
().
setAttribute
(
LOGIN_SESSION_KEY
,
obj
);
}
}
public
static
void
delSessionUser
()
{
public
static
void
delSessionUser
()
{
getSession
().
removeAttribute
(
GlobalParams
.
LOGIN_SESSION_KEY
);
getSession
().
removeAttribute
(
LOGIN_SESSION_KEY
);
}
}
public
static
Object
getAppLoginUser
()
{
public
static
Object
getAppLoginUser
()
{
...
...
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