Beispiel #1
0
    def get_user(username: str):
        Users = db['users']

        return jsonify(Users.find_one({"_id": username}))
Beispiel #2
0
    def check_user(username: str, password: str):
        Users = db['users']

        return Users.find_one({"_id": username, "password": password})