From 9af58b41a287489415682661dda88b07a0829abf Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 10 Mar 2020 22:29:11 +0100 Subject: [PATCH] Implementing sign off --- Kyoo/Views/API/AccountAPI.cs | 8 ++++++++ Kyoo/Views/WebClient | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Kyoo/Views/API/AccountAPI.cs b/Kyoo/Views/API/AccountAPI.cs index 8ed91d92..ca5d6ea5 100644 --- a/Kyoo/Views/API/AccountAPI.cs +++ b/Kyoo/Views/API/AccountAPI.cs @@ -62,6 +62,14 @@ namespace Kyoo.Api return Ok(); } + [HttpGet("logout")] + [Authorize] + public async Task Logout() + { + await _signInManager.SignOutAsync(); + return Ok(); + } + [HttpGet] [Authorize] public async Task> Index() diff --git a/Kyoo/Views/WebClient b/Kyoo/Views/WebClient index afdddfd7..a426f2da 160000 --- a/Kyoo/Views/WebClient +++ b/Kyoo/Views/WebClient @@ -1 +1 @@ -Subproject commit afdddfd7b12d9e31367cec4ad20c3ea2ac169f0c +Subproject commit a426f2da8ff72cf0da5a173791f95e39ded8834e