We are trying to set a default password for users but users suddenly gets invalid password

some users can login

some cannot

here’s my code

def set_password(password):

    for user in frappe.db.sql("""select name from `tabUser`""",as_dict=True):

        update_password(user['name'], password)

Hello, did you manage to make ir work?

If so, could you please share your code with us?

Hi yes, you just need to do this

 user.new_password = code
 user.send_password_update_notification = 0