def update_password(uid, password):

    db = api.common.get_conn()
    db.users.update({'uid': uid}, {'$set': {'password_hash': hash_password(password)}})
Updates an account's password.
dataset/ETHPy150Open IceCTF/ctf-platform/api/api/user.py/update_password