fix password reset recognition

This commit is contained in:
Harvey Tindall 2020-05-03 18:54:07 +01:00
parent 754659b4f9
commit a2e7ff4def
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ class Handler(FileSystemEventHandler):
def on_any_event(event):
if event.is_directory:
return None
elif (event.event_type == 'created' and
elif ((event.event_type == 'modified' or
event.event_type == 'created') and
'passwordreset' in event.src_path):
log.debug(f'Password reset file: {event.src_path}')
time.sleep(1)