From 87f083639a825835b1767d3e2f401ff5dc6bee5d Mon Sep 17 00:00:00 2001 From: ASPP Student Date: Mon, 26 Jun 2023 16:10:53 -0600 Subject: [PATCH] Solved for authentication --- auth.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/auth.py b/auth.py index 474390c..8f65ce6 100644 --- a/auth.py +++ b/auth.py @@ -21,6 +21,13 @@ def read_pwdb(): def add_user(user, password, pwdb): if user not in pwdb: pwdb[user] = password + + elif user in pwdb: + if password == pwdb[user]: + print("Successfully aunthenticated!") + if password != pwdb[user]: + print("Wrong password!") + return pwdb