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:16:19 +0000 (21:16 +0200)
client/src/app/shared/auth/auth.service.ts

index 667fbeb1f4fc83671022ce693b5d82d9e7f34d7b..584298fff585605b69f11dc9ebb9ad85273a12b7 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.LoggedIn);
   }
 
   refreshAccessToken() {