Skip to content

Commit

Permalink
fix return function (thks @alxchk)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroZ committed Jul 3, 2020
1 parent df15d3e commit 4b67449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Windows/lazagne/config/DPAPI/masterkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ def try_credential(self, sid, password=None):
if constant.dpapi_cache.get(sid):
if constant.dpapi_cache[sid]['password'] == password:
if constant.dpapi_cache[sid]['decrypted']:
return True, ''
yield True, ''
else:
return False, ''
yield False, ''

# All master key files have not been already decrypted
if self.nb_mkf_decrypted != self.nb_mkf:
Expand Down

0 comments on commit 4b67449

Please sign in to comment.