mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-22 08:06:47 +00:00
fix: The luna page cannot switch language settings
This commit is contained in:
parent
ecea684282
commit
fa44427baa
@ -143,7 +143,7 @@ class LocaleMiddleware:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def check_white_urls(request):
|
def check_white_urls(request):
|
||||||
white_urls = [
|
white_urls = [
|
||||||
'core/auth/login', 'jsi18n/', '/static/', '/core/i18n/'
|
'core/auth/login', 'jsi18n/', '/static/', '/core/i18n/', '/authentication/user-session/'
|
||||||
]
|
]
|
||||||
for url in white_urls:
|
for url in white_urls:
|
||||||
if request.path.find(url) > -1:
|
if request.path.find(url) > -1:
|
||||||
|
Loading…
Reference in New Issue
Block a user