From b4ba12f5c808ece4984b0c3a028ef3fb3fdf8d39 Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Mon, 26 Aug 2024 14:55:02 +0300 Subject: [PATCH] use getpass for add_user --- auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.py b/auth.py index fb0cb6b..036a62a 100644 --- a/auth.py +++ b/auth.py @@ -14,7 +14,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):