Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
don't send error response when TUP fails
Browse files Browse the repository at this point in the history
  • Loading branch information
btoews committed Jun 8, 2017
1 parent e2002e9 commit c4a601a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoftU2FTool/U2FAuthenticator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class U2FAuthenticator {

UserPresence.test(notification) { success in
if !success {
self.sendError(status: .ConditionsNotSatisfied, cid: cid)
// Send no response. Otherwise Chrome will re-prompt immediately.
return
}

Expand Down Expand Up @@ -134,7 +134,7 @@ class U2FAuthenticator {

UserPresence.test(notification) { success in
if !success {
self.sendError(status: .ConditionsNotSatisfied, cid: cid)
// Send no response. Otherwise Chrome will re-prompt immediately.
return
}

Expand Down

0 comments on commit c4a601a

Please sign in to comment.