2020-04-29 03:08:09 +00:00
|
|
|
# coding: utf-8
|
2021-10-22 12:06:16 +00:00
|
|
|
from jumpserver.context_processor import default_interface
|
|
|
|
from django.conf import settings
|
2020-04-29 03:08:09 +00:00
|
|
|
|
|
|
|
|
2022-07-05 06:43:56 +00:00
|
|
|
def get_interface_setting_or_default():
|
2021-10-22 12:06:16 +00:00
|
|
|
if not settings.XPACK_ENABLED:
|
|
|
|
return default_interface
|
|
|
|
from xpack.plugins.interface.models import Interface
|
|
|
|
return Interface.get_interface_setting()
|
|
|
|
|
|
|
|
|
|
|
|
def get_login_title():
|
2022-07-05 06:43:56 +00:00
|
|
|
return get_interface_setting_or_default()['login_title']
|