Update to support sha2 256 codes

This commit is contained in:
Aaron Johnson 2022-03-23 07:36:23 -05:00
parent caa9e378e1
commit c58ea26a40
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
echo "Connection failed: " . $failure->getMessage();
};
if(($MyKey != '') and (strlen($MyKey) == 32)){
if(($MyKey != '') and (strlen($MyKey) == 32) || (strlen($MyKey) == 64)) {
$MyLookup = $pdo->prepare("SELECT password, retrieved_ip, retireved_time FROM pwtool.mypasswd WHERE code = '$MyKey'");
$MyLookup->execute();