Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Limmen committed Feb 9, 2025
1 parent a881c9e commit 85d260a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/users/update_password.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import bcrypt

if __name__ == '__main__':
admin_user = MetastoreFacade.get_management_user_config(id=1)
admin_user = MetastoreFacade.get_management_user_config(id=1)
new_pwd = "<PASSWORD>"
byte_pwd = new_pwd.encode('utf-8')
salt = bcrypt.gensalt()
pw_hash = bcrypt.hashpw(byte_pwd, salt)
admin_user.password = pw_hash.decode("utf-8")
admin_user.salt = salt.decode("utf-8")
MetastoreFacade.update_management_user(management_user=admin_user, id=1)
MetastoreFacade.update_management_user(management_user=admin_user, id=1)

0 comments on commit 85d260a

Please sign in to comment.