From 0b3afee52fb81646030c6b5ac1fa5fe5734c84e8 Mon Sep 17 00:00:00 2001 From: Gentile G Date: Fri, 20 Oct 2023 13:00:21 +0200 Subject: [PATCH] Correcting password storage in config --- main.py | 8 ++++---- mw40v.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 182602d..fde609f 100755 --- a/main.py +++ b/main.py @@ -132,13 +132,13 @@ def initialize_app(): 'password_hash': PasswordHasher().hash(password) } - username = input("Enter the username for MW40V") - password = input("Enter the password for MW40V") + username_mw40v = input("Enter the username for MW40V") + password_mw40v = input("Enter the password for MW40V") encrypt_key = input("Enter the encrypt_key for MW40V") verification_key = input("Enter the verification_key for MW40V") config['MW40V'] = { - 'username': username, - 'password': PasswordHasher().hash(password), + 'username': username_mw40v, + 'password': password_mw40v, 'encrypt_key': encrypt_key, 'verification_key': verification_key } diff --git a/mw40v.py b/mw40v.py index 43322f5..b9dd3cd 100644 --- a/mw40v.py +++ b/mw40v.py @@ -28,7 +28,7 @@ class Mw40V: if 'result' in r.json(): return r.json()['result'] else: - return True + return {} def headers(self, method): return {