Skip to content

Commit

Permalink
fix(api): more complete logout
Browse files Browse the repository at this point in the history
  • Loading branch information
PLhery committed Jun 18, 2023
1 parent 36adc60 commit c7eb150
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions unfollow-ninja-server/src/api/user.ts
Expand Up @@ -36,6 +36,10 @@ export function createUserRouter(dao: Dao) {
void dao.userEventDao.logWebEvent(session.userId, WebEvent.logout, ctx.ip, session.username);
session.userId = null;
session.username = null;
session.otherProfiles = null;
session.fullName = null;
session.username = null;
session.twitterTokenSecret = null;
ctx.status = 204;
})
.put('/lang', async (ctx) => {
Expand Down

0 comments on commit c7eb150

Please sign in to comment.