File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
LTHPasscodeViewController Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -353,13 +353,8 @@ - (void)_setupFingerPrint {
353353 if (!self.biometricsContext && _allowUnlockWithBiometrics && !_useFallbackPasscode) {
354354 self.biometricsContext = [[LAContext alloc ] init ];
355355
356- LAPolicy policy = LAPolicyDeviceOwnerAuthenticationWithBiometrics;
357- if (@available (iOS 9.0 , *)) {
358- policy = LAPolicyDeviceOwnerAuthentication;
359- }
360-
361356 NSError *error = nil ;
362- if ([self .biometricsContext canEvaluatePolicy: policy error: &error]) {
357+ if ([self .biometricsContext canEvaluatePolicy: LAPolicyDeviceOwnerAuthenticationWithBiometrics error: &error]) {
363358 if (error) {
364359 return ;
365360 }
@@ -375,7 +370,7 @@ - (void)_setupFingerPrint {
375370 _animatingView.hidden = YES ;
376371
377372 // Authenticate User
378- [self .biometricsContext evaluatePolicy: policy
373+ [self .biometricsContext evaluatePolicy: LAPolicyDeviceOwnerAuthenticationWithBiometrics
379374 localizedReason: LTHPasscodeViewControllerStrings (self .biometricsDetailsString)
380375 reply: ^(BOOL success, NSError *error) {
381376
You can’t perform that action at this time.
0 commit comments