Searched refs:discrepancy (Results 1 – 4 of 4) sorted by relevance
86 …* @param int $discrepancy This is the allowed time drift in 30 second units (8 means 4 minutes bef…89 public function verifyCode($secret, $code, $discrepancy = 1) argument93 for ($i = -$discrepancy; $i <= $discrepancy; $i++) {
122 * Check if the code is correct. This will accept codes starting from $discrepancy*30sec ago to $discrepancy*30sec from now.126 * @param int $discrepancy This is the allowed time drift in 30 second units (8 means 4 minutes before or after)131 public function verifyCode($secret, $code, $discrepancy = 1, $currentTimeSlice = null) argument 141 for ($i = -$discrepancy; $i <= $discrepancy; ++$i) {
124 $d->discrepancy = True;179 if ($d->discrepancy) {