Skip to content

Commit

Permalink
Merge pull request #7 from pavarnos/patch-1
Browse files Browse the repository at this point in the history
Fixes a bug when handling the counter offset for TOTP values.

Thanks to @pavarnos for this contribution.
  • Loading branch information
rchouinard committed Jun 30, 2015
2 parents 3c0fb46 + 46beb8f commit f2a93fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TOTP.php
Expand Up @@ -97,7 +97,7 @@ public function validate($otp, $counter = null)
break;
}
}
$this->lastValidCounterOffset = $offset;
$this->lastCounterOffset = $offset;

return $valid;
}
Expand Down

0 comments on commit f2a93fb

Please sign in to comment.