Skip to content

Commit

Permalink
testing 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onlykey committed Aug 31, 2022
1 parent c3929eb commit 7671d6f
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions OnlyKey/OnlyKey.ino
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,17 @@ void setup() {
#endif
SoftTimer.add(&taskKey);

if (onlykeyhw==OK_HW_DUO && initialized == true) {
if (password.profile1hashevaluate()) {
payload(10);
}
if (onlykeyhw==OK_HW_DUO) {
if (!initcheck) {
//Default no challenge code required for DUO
derived_key_challenge_mode = 1;
stored_key_challenge_mode = 1;
okeeprom_eeset_derived_key_challenge_mode(&derived_key_challenge_mode);
okeeprom_eeset_stored_key_challenge_mode(&stored_key_challenge_mode);
}
if (initialized == true && password.profile1hashevaluate()) {
payload(10);
}
}

}
Expand Down

0 comments on commit 7671d6f

Please sign in to comment.