Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
Setting initial counter value to -1 instead of 0
Browse files Browse the repository at this point in the history
Since counter may be 0 the first time.
  • Loading branch information
minisu committed May 22, 2015
1 parent bdd07ff commit eb89329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/u2flib_server/U2F.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class Registration {
/** The attestation certificate of the registered authenticator */
public $certificate;
/** The counter associated with this registration */
public $counter = 0;
public $counter = -1;
}

/** Error class, returned on errors */
Expand Down

0 comments on commit eb89329

Please sign in to comment.