浏览代码

fix

Signed-off-by: Marino Faggiana <8616947+marinofaggiana@users.noreply.github.com>
Marino Faggiana 1 年之前
父节点
当前提交
068123ff94
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      iOSClient/AppDelegate.swift

+ 0 - 4
iOSClient/AppDelegate.swift

@@ -846,7 +846,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
 
             if self.isPasscodeReset {
 
-                passcodeViewController.passcodeView.resetPasscode(animated: true, playImpact: false)
                 passcodeViewController.setContentHidden(true, animated: true)
 
                 let alertController = UIAlertController(title: NSLocalizedString("_reset_wrong_passcode_", comment: ""), message: nil, preferredStyle: .alert)
@@ -858,8 +857,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
 
             } else if self.isPasscodeFail {
 
-                passcodeViewController.biometricButton.isHidden = true
-                passcodeViewController.passcodeView.resetPasscode(animated: true, playImpact: false)
                 passcodeViewController.setContentHidden(true, animated: true)
 
                 let alertController = UIAlertController(title: NSLocalizedString("_passcode_counter_fail_", comment: ""), message: nil, preferredStyle: .alert)
@@ -872,7 +869,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
                     if seconds < 0 {
                         timer.invalidate()
                         alertController.dismiss(animated: true)
-                        passcodeViewController.setContentHidden(false, animated: true)
                         NCKeychain().passcodeCounterFail = 0
                         self.enableTouchFaceID()
                     }