aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-07-27 21:15:13 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-07-27 21:16:19 +0200
commit724fed2931e20498159fd127656d538da678dabe (patch)
treec11e355476816aa53c84633199cc42c25062644f
parent32bb41560279dd0c75d0461f081873483e3aaed9 (diff)
downloadPeerTube-724fed2931e20498159fd127656d538da678dabe.tar.gz
PeerTube-724fed2931e20498159fd127656d538da678dabe.tar.zst
PeerTube-724fed2931e20498159fd127656d538da678dabe.zip
Client: fix login state when logout
-rw-r--r--client/src/app/shared/auth/auth.service.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/shared/auth/auth.service.ts b/client/src/app/shared/auth/auth.service.ts
index 667fbeb1f..584298fff 100644
--- a/client/src/app/shared/auth/auth.service.ts
+++ b/client/src/app/shared/auth/auth.service.ts
@@ -107,6 +107,8 @@ export class AuthService {
107 // TODO: make an HTTP request to revoke the tokens 107 // TODO: make an HTTP request to revoke the tokens
108 this.user = null; 108 this.user = null;
109 User.flush(); 109 User.flush();
110
111 this.setStatus(AuthStatus.LoggedIn);
110 } 112 }
111 113
112 refreshAccessToken() { 114 refreshAccessToken() {