* Force VerifyCode() to return bool

This commit is contained in:
RobThree
2015-07-16 15:43:45 +02:00
parent 0332a61b67
commit e837caa9ce
+1 -1
View File
@@ -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;
}
/**