Finding an UID by email in Firebase
问题 I first attempted to instantiate each user in the database like so: emails : { email: "jerry@gmail.com" { uid: "x" } } I quickly found out that I can't store an email because it has an @ and . . I was originally going to do an user look up like so: func userLookUpByEmail (email: String) -> String { var userID: String = "nil" ref.queryOrderedByChild("emails").queryEqualToValue(email).observeSingleEventOfType(.ChildAdded, withBlock: { snapshot in if snapshot.value != nil { print(snapshot.value)