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~697^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=724fed2931e20498159fd127656d538da678dabe;p=oweals%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..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 { // TODO: make an HTTP request to revoke the tokens this.user = null; User.flush(); + + this.setStatus(AuthStatus.LoggedIn); } refreshAccessToken() {