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

Commit

Permalink
a few other cases where we fall back to user notification
Browse files Browse the repository at this point in the history
  • Loading branch information
btoews committed Jun 8, 2017
1 parent c4a601a commit ef9f62e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SoftU2FTool/UserPresence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class UserPresence: NSObject {
let ctx = LAContext()

if ctx.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil) {
ctx.localizedCancelTitle = "Cancel"
ctx.localizedCancelTitle = "Reject"
ctx.localizedFallbackTitle = "Skip TouchID"

var prompt: String
Expand All @@ -86,7 +86,7 @@ class UserPresence: NSObject {
}

switch lerr.code {
case .userFallback:
case .userFallback, .touchIDNotAvailable, .touchIDNotEnrolled:
self.sendNotification(type)
default:
self.complete(false)
Expand Down

0 comments on commit ef9f62e

Please sign in to comment.