melvisios
TSDThe Swift Den
•Created by melvisios on 7/6/2023 in #swift-development
Cannot show Automatic Strong Passwords for app bundleID: io.blinqpay.blinqpost
8 replies
TSDThe Swift Den
•Created by melvisios on 7/6/2023 in #swift-development
Cannot show Automatic Strong Passwords for app bundleID: io.blinqpay.blinqpost
i was not with my laptop when i replied ok. Just got back.
8 replies
TSDThe Swift Den
•Created by melvisios on 7/6/2023 in #swift-development
Cannot show Automatic Strong Passwords for app bundleID: io.blinqpay.blinqpost
class CreateUserViewModel {
var email: String = ""
var password: String = ""
func createUser(completion: @escaping (Bool, Error?) -> Void) {
let details = ["email": email]
Auth.auth().createUser(withEmail: email, password: password) { result, error in
if let error = error {
completion(false, error)
return
}
guard let uid = result?.user.uid else { return }
Database.database().reference().child("users").child(uid).updateChildValues(details) { error, _ in
if let error = error {
completion(false, error)
return
}
completion(true, nil)
}
}
}
}
8 replies
TSDThe Swift Den
•Created by melvisios on 7/6/2023 in #swift-development
Cannot show Automatic Strong Passwords for app bundleID: io.blinqpay.blinqpost
this is the user account
8 replies
TSDThe Swift Den
•Created by melvisios on 7/6/2023 in #swift-development
Cannot show Automatic Strong Passwords for app bundleID: io.blinqpay.blinqpost
ok
8 replies