From 56e53e92f4b332e2f4b235ce4026d567a3621715 Mon Sep 17 00:00:00 2001 From: Aaron Johnson Date: Fri, 25 Mar 2022 06:07:43 -0500 Subject: [PATCH] Fix Adming password processing --- add.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/add.php b/add.php index 895028d..25ec192 100755 --- a/add.php +++ b/add.php @@ -13,7 +13,7 @@

-AJServer password retrieval +One Time Password Retrieval Tool
query("SELECT id from pwtool where id = 0 and code='".mysqli_real_escape_string($pdo, $adminPassword)."';"); - $myLookup = $pdo->prepare("SELECT id from pwtool.mypasswd where id = 0 and code='($adminPassword)';"); + $myLookup = $pdo->prepare("SELECT id from pwtool.mypasswd where id = 1 and code='$adminPassword';"); $myLookup->execute(); //$myLookup = $pdo->query("SELECT id from pwtool.mypasswd where id = 0 and code='($adminPassword)';"); $count = $myLookup->rowCount(); - if($count = 1){ + if($count == 1){ $displayForm = false;