Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @IBAction func createAccountTapped(_ sender: Any) {
- if let email = emailTextField.text, let password = /////////Thread 1
- passwordTextField.text {
- Auth.auth().createUser(withEmail: email, password:
- password, completion: { (user, error) in
- if let firebaseError = error {
- print(firebaseError.localizedDescription)
- return
- }
- print("success")
- })
- }
- }
- @IBAction func loginTapped(_ sender: Any) {
- if let email = emailTextField.text, let password = ////// Thread1
- passwordTextField.text {
- Auth.auth().signIn(withEmail: email, password:
- password, completion: { (user, error) in
- if let firebaseError = error {
- print(firebaseError.localizedDescription)
- return
- }
- print("success")
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement