diff -r b9eb748ac1e4 -r 31387f4022e5 yms/libotp.php --- a/yms/libotp.php Mon Apr 11 11:23:30 2016 -0400 +++ b/yms/libotp.php Wed Jan 11 13:02:34 2017 +0000 @@ -78,7 +78,5 @@ function yms_within($test, $control, $fuzz) { - $min = $control - $fuzz; - $max = $control + $fuzz; - return $test > $min && $test < $max; + return abs($control - $test) <= $fuzz; }