First of all: if you waited a long time before tapping "HERE" to see this, refresh the page and tap "HERE" again.
Disclaimer: currently, secrets are not encrypted when stored
Scan the QR code below with your authenticator app or enter the secret manually.
Then, return here and enter the 6-digit code generated by your device.
Hit submit and then you're done. 😎
You will then need to use your authenticator app each time you login.
createSecret();
$qrCodeUrl = $ga->getQRCodeGoogleUrl('Misdew', $secret);
echo "
";
echo "Secret: ".$secret."";
$oneCode = $ga->getCode($secret);
//echo "Checking Code '$oneCode' and Secret '$secret': ";
/* $checkResult = $ga->verifyCode($secret, $oneCode, 2); // 2 = 2*30sec clock tolerance
if ($checkResult) {
echo 'OK';
} else {
echo 'FAILED';
}*/
echo "
";
?>
|