Sign in with username instead of email into ios app and firebase
问题 Here is my situation, I am using firebase as a DB for an iOS App. user are able to login via their Email by: @IBAction func signInButtonPressed(_ sender: UIButton) { if let email = emailField.text, let password = passwordField.text { FIRAuth.auth()?.signIn(withEmail: email, password: password) { (user, error) in if let error = error { let alertController = UIAlertController(title: "Login or password incorrect", message: "", preferredStyle: UIAlertControllerStyle.alert) alertController