Since updating to Swift 3.0 even with the correct password I receive the incorrect message. Has anyone had this problem with authorizing users on Firebase?
@IBAction func LoginToAccount(_ sender: AnyObject) { if let email = emailLogin.text, let password = passwordLogin.text { FIRAuth.auth()?.signIn(withEmail: email, password: password, completion: { (user, error) in if error != nil{ print("Incorrect") let alert = UIAlertController(title: "Error", message: "Incorrect Email or Password.", preferredStyle: UIAlertControllerStyle.alert) let action = UIAlertAction(title: "Ok", style: .default, handler: nil) alert.addAction(action) self.present(alert, animated: true, completion: nil) }else{ if error == nil { self.performSegue(withIdentifier: "AdminSegue", sender: self) } } }) } } }