changeset 12 | 31387f4022e5 |
parent 0 | 9997bee9ad03 |
--- 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; }