From a2e7ff4def6a49236232ff3be3422d59221fcbf2 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 3 May 2020 18:54:07 +0100 Subject: [PATCH] fix password reset recognition --- jellyfin_accounts/pw_reset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jellyfin_accounts/pw_reset.py b/jellyfin_accounts/pw_reset.py index 14b1358..0dc5e47 100755 --- a/jellyfin_accounts/pw_reset.py +++ b/jellyfin_accounts/pw_reset.py @@ -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)