Login.php wrong http response fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user