mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 23:20:37 +00:00
fix: Circular import
This commit is contained in:
@@ -2,7 +2,6 @@ from django.contrib.auth import get_user_model
|
|||||||
from django.contrib.auth.backends import ModelBackend
|
from django.contrib.auth.backends import ModelBackend
|
||||||
from django.views import View
|
from django.views import View
|
||||||
|
|
||||||
from authentication.views.utils import redirect_to_guard_view
|
|
||||||
from common.utils import get_logger
|
from common.utils import get_logger
|
||||||
from users.models import User
|
from users.models import User
|
||||||
|
|
||||||
@@ -69,4 +68,5 @@ class BaseAuthCallbackClientView(View):
|
|||||||
http_method_names = ['get']
|
http_method_names = ['get']
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
|
from authentication.views.utils import redirect_to_guard_view
|
||||||
return redirect_to_guard_view(query_string='next=client')
|
return redirect_to_guard_view(query_string='next=client')
|
||||||
|
Reference in New Issue
Block a user