mirror of https://github.com/jumpserver/jumpserver
commit
775f8f2ffd
|
@ -83,3 +83,4 @@ HTTP_LISTEN_PORT = CONFIG.HTTP_LISTEN_PORT
|
||||||
WS_LISTEN_PORT = CONFIG.WS_LISTEN_PORT
|
WS_LISTEN_PORT = CONFIG.WS_LISTEN_PORT
|
||||||
LOGIN_LOG_KEEP_DAYS = DYNAMIC.LOGIN_LOG_KEEP_DAYS
|
LOGIN_LOG_KEEP_DAYS = DYNAMIC.LOGIN_LOG_KEEP_DAYS
|
||||||
ORG_CHANGE_TO_URL = CONFIG.ORG_CHANGE_TO_URL
|
ORG_CHANGE_TO_URL = CONFIG.ORG_CHANGE_TO_URL
|
||||||
|
WINDOWS_SKIP_ALL_MANUAL_PASSWORD = CONFIG.WINDOWS_SKIP_ALL_MANUAL_PASSWORD
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
|
|
||||||
import os
|
|
||||||
import json
|
import json
|
||||||
import jms_storage
|
|
||||||
|
|
||||||
from smtplib import SMTPSenderRefused
|
from smtplib import SMTPSenderRefused
|
||||||
from rest_framework import generics
|
from rest_framework import generics
|
||||||
|
@ -12,7 +10,6 @@ from django.conf import settings
|
||||||
from django.core.mail import send_mail
|
from django.core.mail import send_mail
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from .models import Setting
|
|
||||||
from .utils import (
|
from .utils import (
|
||||||
LDAPServerUtil, LDAPCacheUtil, LDAPImportUtil, LDAPSyncUtil,
|
LDAPServerUtil, LDAPCacheUtil, LDAPImportUtil, LDAPSyncUtil,
|
||||||
LDAP_USE_CACHE_FLAGS
|
LDAP_USE_CACHE_FLAGS
|
||||||
|
@ -250,11 +247,10 @@ class PublicSettingApi(generics.RetrieveAPIView):
|
||||||
serializer_class = PublicSettingSerializer
|
serializer_class = PublicSettingSerializer
|
||||||
|
|
||||||
def get_object(self):
|
def get_object(self):
|
||||||
c = settings.CONFIG
|
|
||||||
instance = {
|
instance = {
|
||||||
"data": {
|
"data": {
|
||||||
"WINDOWS_SKIP_ALL_MANUAL_PASSWORD": c.WINDOWS_SKIP_ALL_MANUAL_PASSWORD,
|
"WINDOWS_SKIP_ALL_MANUAL_PASSWORD": settings.WINDOWS_SKIP_ALL_MANUAL_PASSWORD,
|
||||||
"SECURITY_MAX_IDLE_TIME": c.SECURITY_MAX_IDLE_TIME,
|
"SECURITY_MAX_IDLE_TIME": settings.SECURITY_MAX_IDLE_TIME,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return instance
|
return instance
|
||||||
|
|
Loading…
Reference in New Issue