简体   繁体   中英

Check if username already exists pyrebase

I wanted to know if there is any query that can let me know if username already exists using firestore in python? when a user register his/ her email, if email already exists it show that it's already existing. In the same way, is there any built in function or any other method to know that username already exist? I am using pyrebase. If anyone knows a way please let me know.

You can run this query and check if there is a match.

users_by_name = db.child("users").order_by_child("name").get()

I suggest that you check that link on how to retrieve information using pyrebase .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM