threadr.lostcave.ddnss.de/content/login.php

18 lines
669 B
PHP
Raw Normal View History

2020-01-06 13:11:57 +01:00
<?php
2020-01-13 08:53:11 +01:00
session_start();
2020-01-06 13:11:57 +01:00
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
2020-01-06 13:38:49 +01:00
$statement_auth_by_name = $pdo->prepare('SELECT authentication_salt, authentication_algorithm FROM users WHERE name=:name');
2020-01-06 13:11:57 +01:00
$result_auth_by_name = $statement_auth_by_name->execute(array('name' => $_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]);
}
2020-01-06 13:11:57 +01:00
2020-01-13 08:53:11 +01:00
//$result_name_by_auth = $Statement_name_by_auth->execute(array('authentication_string' => $authentication_string));
2020-01-06 13:11:57 +01:00
?>