|
@@ -722,7 +722,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
let passcodeViewController = TOPasscodeViewController(passcodeType: .sixDigits, allowCancel: false)
|
|
|
passcodeViewController.delegate = self
|
|
|
passcodeViewController.keypadButtonShowLettering = false
|
|
|
- if CCUtility.getEnableTouchFaceID() && laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) {
|
|
|
+ if NCKeychain().touchFaceID, laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) {
|
|
|
if error == nil {
|
|
|
if laContext.biometryType == .faceID {
|
|
|
passcodeViewController.biometryType = .faceID
|
|
@@ -746,7 +746,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|
|
|
|
|
func enableTouchFaceID() {
|
|
|
guard !account.isEmpty,
|
|
|
- CCUtility.getEnableTouchFaceID(),
|
|
|
+ NCKeychain().touchFaceID,
|
|
|
NCKeychain().passcode != nil,
|
|
|
NCKeychain().requestPasscodeAtStart,
|
|
|
let passcodeViewController = privacyProtectionWindow?.rootViewController?.presentedViewController as? TOPasscodeViewController
|