diff --git a/auth.py b/auth.py index b946a1f..111ca1d 100644 --- a/auth.py +++ b/auth.py @@ -29,7 +29,12 @@ def authenticate(username, password, pwdb): write_pwdb(pwdb) def add_user(username, password, pwdb): - pwdb[username] = password + flag = input("Do you want to add a new user? y/n ") + if flag == "y": + pwdb[username] = password + print("User added correcly") + else: + print("User not added") return pwdb username, password = get_credentials()