From 9f702bb0fc8246fd95e9113296c35f8d8e2b3222 Mon Sep 17 00:00:00 2001 From: LinuxMint4Ever <> Date: Mon, 6 Jan 2020 13:57:21 +0100 Subject: [PATCH] commented everything out for security reasons --- content/login.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/content/login.php b/content/login.php index 702b00b..3ee6cca 100644 --- a/content/login.php +++ b/content/login.php @@ -1,6 +1,6 @@ prepare('SELECT authentication_salt, authentication_algorithm FROM users WHERE name=:name'); @@ -8,11 +8,10 @@ $result_auth_by_name = $statement_auth_by_name->execute(array('name' => $_POST['name'])); - echo $statement_auth_by_name->queryString; - echo "\n"; - echo $statement_auth_by_name->errorInfo()[2]; - echo $_POST['name']; + if (!result_auth_by_name) { + error_log("An SQL error ocurred while logging in.\nUser: $_POST['name']\n" . $statement_auth_by_name->queryString . "\n" . $statement_auth_by_name->errorInfo()[2]); + } -// $result_name_by_auth = $Statement_name_by_auth->execute(array('authentication_string' => $authentication_string)); + //$result_name_by_auth = $Statement_name_by_auth->execute(array('authentication_string' => $authentication_string)); */ ?>