Commit c98e1f6d authored by Carola Nitz's avatar Carola Nitz

VLCKeychainCoordinator: if the passcode is empty we won't show the passcode screen

parent 66c4691f
......@@ -82,7 +82,9 @@ class KeychainCoordinator:NSObject, PAPasscodeViewControllerDelegate {
@objc func validatePasscode(completion:@escaping ()->()) {
passcodeLockController.passcode = passcodeFromKeychain()
self.completion = completion
guard let rootViewController = UIApplication.shared.delegate?.window??.rootViewController else {
guard let rootViewController = UIApplication.shared.delegate?.window??.rootViewController, passcodeLockController.passcode != "" else {
self.completion?()
self.completion = nil
return
}
if rootViewController.presentedViewController != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment