diff --git a/index.php b/index.php index 98069d4..e98f2d5 100755 --- a/index.php +++ b/index.php @@ -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();