mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2024-10-31 19:40:10 +00:00
fix password reset recognition
This commit is contained in:
parent
754659b4f9
commit
a2e7ff4def
@ -33,7 +33,8 @@ class Handler(FileSystemEventHandler):
|
|||||||
def on_any_event(event):
|
def on_any_event(event):
|
||||||
if event.is_directory:
|
if event.is_directory:
|
||||||
return None
|
return None
|
||||||
elif (event.event_type == 'created' and
|
elif ((event.event_type == 'modified' or
|
||||||
|
event.event_type == 'created') and
|
||||||
'passwordreset' in event.src_path):
|
'passwordreset' in event.src_path):
|
||||||
log.debug(f'Password reset file: {event.src_path}')
|
log.debug(f'Password reset file: {event.src_path}')
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user