Update to support sha2 256 codes
This commit is contained in:
parent
caa9e378e1
commit
c58ea26a40
|
|
@ -33,7 +33,7 @@
|
||||||
echo "Connection failed: " . $failure->getMessage();
|
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 = $pdo->prepare("SELECT password, retrieved_ip, retireved_time FROM pwtool.mypasswd WHERE code = '$MyKey'");
|
||||||
$MyLookup->execute();
|
$MyLookup->execute();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue