We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a881c9e commit 85d260aCopy full SHA for 85d260a
examples/users/update_password.py
@@ -2,11 +2,11 @@
2
import bcrypt
3
4
if __name__ == '__main__':
5
- admin_user = MetastoreFacade.get_management_user_config(id=1)
+ admin_user = MetastoreFacade.get_management_user_config(id=1)
6
new_pwd = "<PASSWORD>"
7
byte_pwd = new_pwd.encode('utf-8')
8
salt = bcrypt.gensalt()
9
pw_hash = bcrypt.hashpw(byte_pwd, salt)
10
admin_user.password = pw_hash.decode("utf-8")
11
admin_user.salt = salt.decode("utf-8")
12
- MetastoreFacade.update_management_user(management_user=admin_user, id=1)
+ MetastoreFacade.update_management_user(management_user=admin_user, id=1)
0 commit comments