From 3e0eb46a669dfcc930b117afee808adf3a6daecb Mon Sep 17 00:00:00 2001 From: Nicolas Went <35817305+NicolasWent@users.noreply.github.com> Date: Tue, 26 Jan 2021 11:13:04 +0100 Subject: [PATCH] [Logout] Fixed error There was a missing else there which causes that even when the credentials are correct and the username exists, it still returns an error. --- server/app/logout.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/app/logout.php b/server/app/logout.php index 1de0657..1dc55ad 100644 --- a/server/app/logout.php +++ b/server/app/logout.php @@ -53,10 +53,9 @@ else // Returning the third error echo error(3); - } - - // Else if the request is empty (the user wasn't found) - echo error(3); + } else + // Else if the request is empty (the user wasn't found) + echo error(3); } // Else if one of them is null