mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-21 11:28:38 +00:00
perf: in safe mode passkey cannot be as mfa
This commit is contained in:
@@ -42,6 +42,7 @@ class DownloadUploadMixin:
|
||||
rel_path = default_storage.save(save_to, file)
|
||||
path = default_storage.path(rel_path)
|
||||
extract_to = default_storage.path('applets/{}.tmp'.format(file.name))
|
||||
|
||||
if os.path.exists(extract_to):
|
||||
shutil.rmtree(extract_to)
|
||||
|
||||
|
Reference in New Issue
Block a user