1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-01 01:52:18 +01:00

Refactor.

- $new_otp not used afterwards,
	clean up to avoid reuse by mistake.
This commit is contained in:
Jean Paul Galea 2015-07-21 20:54:49 +00:00
parent 84e867a6eb
commit e24b02a7dc

View File

@ -85,6 +85,7 @@ if (preg_match('/^[jxe.uidchtnbpygk]+$/', $otp))
$new_otp = strtr($otp, 'jxe.uidchtnbpygk', 'cbdefghijklnrtuv');
$myLog->log(LOG_INFO, "Dvorak OTP converting $otp to $new_otp");
$otp = $new_otp;
unset($new_otp);
}