From 13df26e448b966ddf27cc23b1c7d3ce1ec0abd54 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de>
Date: Fri, 23 Aug 2019 12:25:52 +0200
Subject: [PATCH] Logout user by deletion

---
 src/app/components/shared/header/header.component.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/app/components/shared/header/header.component.ts b/src/app/components/shared/header/header.component.ts
index 8005f9d13..4d9bf53be 100644
--- a/src/app/components/shared/header/header.component.ts
+++ b/src/app/components/shared/header/header.component.ts
@@ -107,6 +107,7 @@ export class HeaderComponent implements OnInit {
 
   deleteAccount(id: string) {
     this.userService.delete(id).subscribe();
+    this.authenticationService.logout();
     this.translationService.get('header.account-deleted').subscribe(msg => {
       this.notificationService.show(msg);
     });
-- 
GitLab