diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-07-27 21:15:13 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-07-27 21:16:19 +0200 |
commit | 724fed2931e20498159fd127656d538da678dabe (patch) | |
tree | c11e355476816aa53c84633199cc42c25062644f /client/src | |
parent | 32bb41560279dd0c75d0461f081873483e3aaed9 (diff) | |
download | PeerTube-724fed2931e20498159fd127656d538da678dabe.tar.gz PeerTube-724fed2931e20498159fd127656d538da678dabe.tar.zst PeerTube-724fed2931e20498159fd127656d538da678dabe.zip |
Client: fix login state when logout
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/auth/auth.service.ts | 2 |
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() { |