PDO
This commit is contained in:
@@ -20,7 +20,7 @@ $boolLogin=true;
|
||||
$strPassword = trim($_POST['password']);
|
||||
$strSQL = "SELECT username,passwordhash FROM user WHERE username='$strUser'";
|
||||
$result = $db->query($strSQL);
|
||||
if ($row=$result->fetchArray()) {
|
||||
if ($row=$result->fetch(PDO::FETCH_ASSOC)) {
|
||||
if (password_verify($strPassword,$row['passwordhash'])) {
|
||||
session_start();
|
||||
$_SESSION['user']=$strUser;
|
||||
|
||||
Reference in New Issue
Block a user