summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobThree <rob@devcorner.nl>2015-07-16 15:43:45 +0200
committerRobThree <rob@devcorner.nl>2015-07-16 15:43:45 +0200
commite837caa9ced98c86ba1b5d6af66e94532fc06ef0 (patch)
tree5f40261e6b392c9907d57724234e1f358ba347db
parent0332a61b67a9a2633dac5fc25ced6706183003e4 (diff)
downloadTwoFactorAuth-e837caa9ced98c86ba1b5d6af66e94532fc06ef0.zip
TwoFactorAuth-e837caa9ced98c86ba1b5d6af66e94532fc06ef0.tar.gz
TwoFactorAuth-e837caa9ced98c86ba1b5d6af66e94532fc06ef0.tar.bz2
* Force VerifyCode() to return bool1.2
-rw-r--r--lib/TwoFactorAuth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php
index 6a68cc6..a2e4132 100644
--- a/lib/TwoFactorAuth.php
+++ b/lib/TwoFactorAuth.php
@@ -108,7 +108,7 @@ class TwoFactorAuth
for ($i = -$discrepancy; $i <= $discrepancy; $i++)
$result |= $this->codeEquals($this->getCode($secret, $timetamp + ($i * $this->period)), $code);
- return $result;
+ return (bool)$result;
}
/**