mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-18 23:03:27 +00:00
* Force VerifyCode() to return bool
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user