File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
TOPasscodeViewControllerExample Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,22 @@ - (void)didPerformBiometricValidationRequestInPasscodeViewController:(TOPasscode
103
103
return ;
104
104
}
105
105
106
- // The user hit the 'Cancel' button in the Touch ID dialog
107
- // (Use this to dismiss the controller if desired, but do not show the protected content)
106
+ // The user hit 'Enter Password'. This should probably do nothing
107
+ // but make sure the passcode controller is visible.
108
+ if (error.code == kLAErrorUserFallback ) {
109
+ NSLog (@" User tapped 'Enter Password'" );
110
+ return ;
111
+ }
112
+
113
+ // The user hit the 'Cancel' button in the Touch ID dialog.
114
+ // At this point, you could either simply return the user to the passcode controller,
115
+ // or dismiss the protected content and go back to a safer point in your app (Like the login page).
108
116
if (error.code == LAErrorUserCancel) {
109
- [weakSelf dismissViewControllerAnimated: YES completion: nil ] ;
117
+ NSLog ( @" User tapped cancel. " ) ;
110
118
return ;
111
119
}
112
120
113
- // The other main error would be if the user hit 'Enter Passcode', in which case they can enter
114
- // their passcode manually into the passcode controller
121
+ // There shouldn't be any other potential errors, but just in case
115
122
NSLog (@" %@ " , error.localizedDescription );
116
123
};
117
124
You can’t perform that action at this time.
0 commit comments