summaryrefslogtreecommitdiffstats
path: root/lib/TwoFactorAuth.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TwoFactorAuth.php')
-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;
}
/**