From: Chocobozzz Date: Wed, 27 Jul 2016 19:15:13 +0000 (+0200) Subject: Client: fix login state when logout X-Git-Tag: v0.0.1-alpha~804 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e62f6ef741c8d14817e321c554796ad64ea7ae1b;p=github%2FChocobozzz%2FPeerTube.git Client: fix login state when logout --- 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 { // TODO: make an HTTP request to revoke the tokens this.user = null; User.flush(); + + this.setStatus(AuthStatus.LoggedOut); } refreshAccessToken() {