From e08a0df52f1d81e1f1141ca0a6d66b1894af68f9 Mon Sep 17 00:00:00 2001 From: RundelhausCode Date: Tue, 23 Mar 2021 10:50:29 +0100 Subject: [PATCH] Login.php wrong http response fix --- Backend/Controllers/Group/Login.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Backend/Controllers/Group/Login.php b/Backend/Controllers/Group/Login.php index 337a6a3..9ec078c 100644 --- a/Backend/Controllers/Group/Login.php +++ b/Backend/Controllers/Group/Login.php @@ -36,13 +36,17 @@ if(isset($_POST['login'])){ }else{ session_destroy(); + echo "Wrong password"; echo http_response_code(401); } }else{ session_destroy(); - echo http_response_code(400); + echo "group was not found"; + echo http_response_code(401); } +}else{ + echo http_response_code(400); }