commented everything out for security reasons

master
LinuxMint4Ever 2020-01-06 13:57:21 +01:00
parent 9b43fdad0e
commit 9f702bb0fc
1 changed files with 6 additions and 7 deletions

View File

@ -1,6 +1,6 @@
<?php
//session_start();
/*
session_start();
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
$statement_auth_by_name = $pdo->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)); */
?>