fixed that security problem
This commit is contained in:
parent
18579b0af2
commit
0aadaff89d
1 changed files with 2 additions and 5 deletions
|
@ -33,10 +33,7 @@ if len(sys.argv) > 1:
|
|||
write_pwdb(pwdb, pwdb_path)
|
||||
else:
|
||||
username, password = get_credentials()
|
||||
if username not in pwdb:
|
||||
if username not in pwdb or not authenticate(username, password, pwdb):
|
||||
print('Wrong username or password!')
|
||||
else:
|
||||
if authenticate(username, password, pwdb):
|
||||
print('Successfully authenticated!')
|
||||
else:
|
||||
print('Wrong username or password!')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue