Correcting password storage in config

This commit is contained in:
2023-10-20 13:00:21 +02:00
parent 1276bea0fb
commit 0b3afee52f
2 changed files with 5 additions and 5 deletions

View File

@@ -132,13 +132,13 @@ def initialize_app():
'password_hash': PasswordHasher().hash(password) 'password_hash': PasswordHasher().hash(password)
} }
username = input("Enter the username for MW40V") username_mw40v = input("Enter the username for MW40V")
password = input("Enter the password for MW40V") password_mw40v = input("Enter the password for MW40V")
encrypt_key = input("Enter the encrypt_key for MW40V") encrypt_key = input("Enter the encrypt_key for MW40V")
verification_key = input("Enter the verification_key for MW40V") verification_key = input("Enter the verification_key for MW40V")
config['MW40V'] = { config['MW40V'] = {
'username': username, 'username': username_mw40v,
'password': PasswordHasher().hash(password), 'password': password_mw40v,
'encrypt_key': encrypt_key, 'encrypt_key': encrypt_key,
'verification_key': verification_key 'verification_key': verification_key
} }

View File

@@ -28,7 +28,7 @@ class Mw40V:
if 'result' in r.json(): if 'result' in r.json():
return r.json()['result'] return r.json()['result']
else: else:
return True return {}
def headers(self, method): def headers(self, method):
return { return {