From c4a601a70a29c51155a118b571b8a7231513c56b Mon Sep 17 00:00:00 2001 From: Ben Toews Date: Thu, 8 Jun 2017 12:30:48 -0600 Subject: [PATCH] don't send error response when TUP fails --- SoftU2FTool/U2FAuthenticator.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoftU2FTool/U2FAuthenticator.swift b/SoftU2FTool/U2FAuthenticator.swift index afe00a5..9f1ce3d 100644 --- a/SoftU2FTool/U2FAuthenticator.swift +++ b/SoftU2FTool/U2FAuthenticator.swift @@ -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 } @@ -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 }