frasza
12/31/2017 - 12:16 PM

FireBase User Registration

FireBase User Registration Method

Auth.auth().createUser(withEmail: emailTextfield.text!, password: passwordTextfield.text!) { (user, error) in
    if error != nil {
        print(error!)
    } else {
        // Success
        print("Registration successful!")
        self.performSegue(withIdentifier: "segue", sender: self)
    }
}