do not leak valid usernames
This commit is contained in:
parent
becc5fd8aa
commit
18579b0af2
1 changed files with 2 additions and 2 deletions
|
@ -34,9 +34,9 @@ if len(sys.argv) > 1:
|
|||
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…
Add table
Add a link
Reference in a new issue