             }
         }
         
-        let cancelAction = UIAlertAction(title: "Cancel", style: .cancel) { (_) in }
+        let cancelAction = UIAlertAction(title: "Cancel", style: .cancel) { (_) in
+            completion(false)
+        }
         
         alertController.addTextField { (textField) in
             textField.placeholder = "Passcode:"

            if sender.isOn == true {
                showInputPasscode(completion: {(ok) in
                    if ok == true {
                        Other.useTouchID = sender.isOn
                    }
                    else {
                        self.showAlertFail(title: "Error", message: "Passcode not same")
                    }
                })
            } else {
                showConfirmPasscode(completion: {(ok) in
                    if ok == true {
                        Other.useTouchID = sender.isOn
                    }
                    else {
                        self.showAlertFail(title: "Error", message: "Wrong passcode")
                    }
                })
            }
        }
        if (sender == switchNotification) {
            Other.useNotification = sender.isOn
        }
        Other.update(completion: {(ok) in
            if ok == false {
                self.showAlertFail(title: "Error", message: "Have error, please try again")
            }
        })
    }
    
    override func didReceiveMemoryWarning() {

            }
        }
        
        let cancelAction = UIAlertAction(title: "Cancel", style: .cancel) { (_) in
            completion(false)
        }
        
        alertController.addTextField { (textField) in
            textField.placeholder = "Passcode:"
