diff --git a/lib/OTP.php b/lib/OTP.php index 0b52ebab..4aacbdb0 100644 --- a/lib/OTP.php +++ b/lib/OTP.php @@ -338,7 +338,7 @@ private function intToByteString($int) return str_pad(implode(array_reverse($result)), 8, "\000", STR_PAD_LEFT); } - + protected function compareOTP($safe, $user) { if (function_exists('hash_equals')) { @@ -346,7 +346,7 @@ protected function compareOTP($safe, $user) } $safeLen = strlen($safe); $userLen = strlen($user); - + if ($userLen !== $safeLen) { return false; }