mirror of
https://github.com/RobThree/TwoFactorAuth.git
synced 2026-08-28 11:06:53 +00:00
* Fix TwoFactorAuth class actually uses the TimeProvider
* Update README and DEMO to advise using 160+ bits secret
This commit is contained in:
@@ -154,7 +154,7 @@ class TwoFactorAuth
|
||||
|
||||
private function getTime($time)
|
||||
{
|
||||
return ($time === null) ? $this->timeprovider->getTime() : $time;
|
||||
return ($time === null) ? $this->getTimeProvider()->getTime() : $time;
|
||||
}
|
||||
|
||||
private function getTimeSlice($time = null, $offset = 0)
|
||||
|
||||
Reference in New Issue
Block a user