mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-08 03:54:20 +01:00
Refactor.
- $new_otp not used afterwards, clean up to avoid reuse by mistake.
This commit is contained in:
parent
84e867a6eb
commit
e24b02a7dc
@ -85,6 +85,7 @@ if (preg_match('/^[jxe.uidchtnbpygk]+$/', $otp))
|
|||||||
$new_otp = strtr($otp, 'jxe.uidchtnbpygk', 'cbdefghijklnrtuv');
|
$new_otp = strtr($otp, 'jxe.uidchtnbpygk', 'cbdefghijklnrtuv');
|
||||||
$myLog->log(LOG_INFO, "Dvorak OTP converting $otp to $new_otp");
|
$myLog->log(LOG_INFO, "Dvorak OTP converting $otp to $new_otp");
|
||||||
$otp = $new_otp;
|
$otp = $new_otp;
|
||||||
|
unset($new_otp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user