mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:57:29 +00:00
auth_internal: use type-strict comparison when checking OTP code
This commit is contained in:
@@ -52,7 +52,7 @@ class Auth_Internal extends Plugin implements IAuthModule {
|
||||
$totp_legacy = new \OTPHP\TOTP($secret_legacy);
|
||||
$otp_check_legacy = $totp_legacy->now();
|
||||
|
||||
if ($otp != $otp_check && $otp != $otp_check_legacy) {
|
||||
if ($otp !== $otp_check && $otp !== $otp_check_legacy) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user