From b9481a719ed1ec38087ec1263cb8f11b8bcdd7ea Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Mon, 26 Aug 2024 15:27:15 +0300 Subject: [PATCH] keep password secure when adding new user --- auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.py b/auth.py index 1559a08..6bb9fbe 100644 --- a/auth.py +++ b/auth.py @@ -13,7 +13,7 @@ def authenticate(username, password, pwdb): return password == pwdb[username] def add_user(username, pwdb): - pwdb[username] = input(f'Enter password for {username}: ') + pwdb[username] = getpass(f'Enter password for {username}: ') return pwdb def read_pwdb(PWDB_PATH):