not leak usernames
This commit is contained in:
parent
b42ef06d91
commit
8e1d8309da
4
auth.py
4
auth.py
|
@ -39,10 +39,10 @@ if __name__ == "__main__":
|
|||
else:
|
||||
username, password = get_credentials()
|
||||
if username not in pwdb:
|
||||
print('Wrong username!')
|
||||
print('Wrong username or password!')
|
||||
else:
|
||||
if authenticate(username, password, pwdb):
|
||||
print('Successfully authenticated!')
|
||||
else:
|
||||
print('Wrong password!')
|
||||
print('Wrong username or password!')
|
||||
|
||||
|
|
Loading…
Reference in a new issue