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:38:09 +0200 |
commit | e62f6ef741c8d14817e321c554796ad64ea7ae1b (patch) | |
tree | 7a9ef122453c32b39a35d0e0549783e3aee8aa71 /client/src/app | |
parent | 32bb41560279dd0c75d0461f081873483e3aaed9 (diff) | |
download | PeerTube-e62f6ef741c8d14817e321c554796ad64ea7ae1b.tar.gz PeerTube-e62f6ef741c8d14817e321c554796ad64ea7ae1b.tar.zst PeerTube-e62f6ef741c8d14817e321c554796ad64ea7ae1b.zip |
Client: fix login state when logout
Diffstat (limited to 'client/src/app')
-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..4c08e24c0 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.LoggedOut); | ||
110 | } | 112 | } |
111 | 113 | ||
112 | refreshAccessToken() { | 114 | refreshAccessToken() { |