mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-12-22 12:02:34 +00:00
Compare commits
1 Commits
v3
...
rdp-patch-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab777aeb18 |
@@ -66,6 +66,8 @@ class RDPFileClientProtocolURLMixin:
|
|||||||
'autoreconnection enabled:i': '1',
|
'autoreconnection enabled:i': '1',
|
||||||
'bookmarktype:i': '3',
|
'bookmarktype:i': '3',
|
||||||
'use redirection server name:i': '0',
|
'use redirection server name:i': '0',
|
||||||
|
'bitmapcachepersistenable:i': '0',
|
||||||
|
'bitmapcachesize:i': '1500',
|
||||||
}
|
}
|
||||||
# 设置多屏显示
|
# 设置多屏显示
|
||||||
multi_mon = is_true(self.request.query_params.get('multi_mon'))
|
multi_mon = is_true(self.request.query_params.get('multi_mon'))
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
import jms_storage
|
|
||||||
from celery import shared_task
|
from celery import shared_task
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.mail import send_mail, EmailMultiAlternatives, get_connection
|
from django.core.mail import send_mail, EmailMultiAlternatives, get_connection
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
import jms_storage
|
||||||
|
|
||||||
from .utils import get_logger
|
from .utils import get_logger
|
||||||
|
|
||||||
@@ -71,7 +71,10 @@ def send_mail_attachment_async(subject, message, recipient_list, attachment_list
|
|||||||
for attachment in attachment_list:
|
for attachment in attachment_list:
|
||||||
email.attach_file(attachment)
|
email.attach_file(attachment)
|
||||||
os.remove(attachment)
|
os.remove(attachment)
|
||||||
return email.send()
|
try:
|
||||||
|
return email.send()
|
||||||
|
except Exception as e:
|
||||||
|
logger.error("Sending mail attachment error: {}".format(e))
|
||||||
|
|
||||||
|
|
||||||
@shared_task(verbose_name=_('Upload session replay to external storage'))
|
@shared_task(verbose_name=_('Upload session replay to external storage'))
|
||||||
|
|||||||
Reference in New Issue
Block a user