From 29fb7baa21b69bfb1b11b1b642eec7d2ab651e1d Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Mon, 26 Aug 2024 15:11:40 +0300 Subject: [PATCH] Fix visible password --- auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.py b/auth.py index 84da6da..8e80d62 100644 --- a/auth.py +++ b/auth.py @@ -13,7 +13,7 @@ def authenticate(username, password, pwdb): return pwhash(password) == pwdb[username] def add_user(username, pwdb): - password = input(f'Enter password for {username}: ') + password = getpass(f'Enter password for {username}: ') pwdb[username] = pwhash(password) return pwdb