我正在使用firebase
电子邮件和密码凭据登录-
if driverNameTextField.text == "" && passwordTextField.text == ""{
AppUtils.showAlert(title: "Alert", message: "Please enter correct user name and password", viewController: self)
}
else{
Auth.auth().signIn(withEmail:userName.text!, password: passwordTextField.text!) { (user, error) in
if error == nil{
let revealController = self.storyboard?.instantiateViewController(withIdentifier: "SWRevealViewController") as! SWRevealViewController
self.present(revealController, animated: true, completion: nil)
}
else {
AppUtils.showAlert(title: "Alert", message: (error?.localizedDescription)!, viewController: self)
}
}
这是图片