Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
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
曲欣亮
member-api
Commits
a27a6698
Commit
a27a6698
authored
Jan 17, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
4f19b224
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
AdminTokenServiceImpl.java
...om/egolm/film/api/service/impl/AdminTokenServiceImpl.java
+2
-0
MemberTokenServiceImpl.java
...m/egolm/film/api/service/impl/MemberTokenServiceImpl.java
+2
-0
UserTokenServiceImpl.java
...com/egolm/film/api/service/impl/UserTokenServiceImpl.java
+2
-0
No files found.
src/main/java/com/egolm/film/api/service/impl/AdminTokenServiceImpl.java
View file @
a27a6698
...
@@ -85,6 +85,8 @@ public class AdminTokenServiceImpl implements AdminTokenService {
...
@@ -85,6 +85,8 @@ public class AdminTokenServiceImpl implements AdminTokenService {
@Override
@Override
public
void
doLogout
()
{
public
void
doLogout
()
{
String
sql
=
"update fc_admin set token = ? where adminid = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
null
,
this
.
getToken
().
getId
());
HttpSession
session
=
WebMvcConfig
.
getSession
();
HttpSession
session
=
WebMvcConfig
.
getSession
();
session
.
removeAttribute
(
TOKEN_NAME
);
session
.
removeAttribute
(
TOKEN_NAME
);
session
.
invalidate
();
session
.
invalidate
();
...
...
src/main/java/com/egolm/film/api/service/impl/MemberTokenServiceImpl.java
View file @
a27a6698
...
@@ -84,6 +84,8 @@ public class MemberTokenServiceImpl implements MemberTokenService {
...
@@ -84,6 +84,8 @@ public class MemberTokenServiceImpl implements MemberTokenService {
@Override
@Override
public
void
doLogout
()
{
public
void
doLogout
()
{
String
sql
=
"update fc_member set token = ? where id = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
null
,
this
.
getToken
().
getId
());
HttpSession
session
=
WebMvcConfig
.
getSession
();
HttpSession
session
=
WebMvcConfig
.
getSession
();
session
.
removeAttribute
(
TOKEN_NAME
);
session
.
removeAttribute
(
TOKEN_NAME
);
session
.
invalidate
();
session
.
invalidate
();
...
...
src/main/java/com/egolm/film/api/service/impl/UserTokenServiceImpl.java
View file @
a27a6698
...
@@ -81,6 +81,8 @@ public class UserTokenServiceImpl implements UserTokenService {
...
@@ -81,6 +81,8 @@ public class UserTokenServiceImpl implements UserTokenService {
@Override
@Override
public
void
doLogout
()
{
public
void
doLogout
()
{
String
sql
=
"update fc_user set token = ? where uid = ?"
;
jdbcTemplate
.
executeUpdate
(
sql
,
null
,
this
.
getToken
().
getId
());
HttpSession
session
=
WebMvcConfig
.
getSession
();
HttpSession
session
=
WebMvcConfig
.
getSession
();
session
.
removeAttribute
(
TOKEN_NAME
);
session
.
removeAttribute
(
TOKEN_NAME
);
session
.
invalidate
();
session
.
invalidate
();
...
...
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