             } else {
                 return .Invalid
             }
-        }, unlocked: {
-            self.dismiss()
+            }, unlocked: {
+                self.dismiss()
         })
         passcodeLockViewController.cancelButtonEnabled = true
         passcodeLockWindow.rootViewController = passcodeLockViewController
     }
-
+    
     func presentWithChangePasscode() {
         guard let imageView = screenshotAndPresentNewWindow() else {
             return

import RxSwift
import RxCocoa

class PasscodePresenter {
    
    private var presentedWindow: UIWindow?
    private var passcodeLockWindow: UIWindow!
    private var disposeBag: DisposeBag = DisposeBag()
    static let sharedInstance = PasscodePresenter()
    
    init() {
        hookApplicationWillResignActive()
    }
    

                }
                return .Invalid
            }
            }, unlocked: {
                self.dismiss()
        })
        passcodeLockWindow.rootViewController = passcodeLockViewController
    }
    
    func presentWithNewPasscode() {
        guard let imageView = screenshotAndPresentNewWindow() else {
            return
