]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Client: fix login state when logout
authorChocobozzz <florian.bigard@gmail.com>
Wed, 27 Jul 2016 19:15:13 +0000 (21:15 +0200)
committerChocobozzz <florian.bigard@gmail.com>
Wed, 27 Jul 2016 19:38:09 +0000 (21:38 +0200)
client/src/app/shared/auth/auth.service.ts

index 667fbeb1f4fc83671022ce693b5d82d9e7f34d7b..4c08e24c0e4a3861191b09dc2207b2f3dbc1ee8f 100644 (file)
@@ -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() {