* Fix TwoFactorAuth class actually uses the TimeProvider

* Update README and DEMO to advise using 160+ bits secret
This commit is contained in:
RobThree
2017-02-17 16:24:54 +01:00
parent f90bc37319
commit 5093ab230c
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -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)