diff --git a/seahub/urls.py b/seahub/urls.py index 60199780b56..804ecf95d8e 100644 --- a/seahub/urls.py +++ b/seahub/urls.py @@ -6,7 +6,7 @@ from seahub.api2.endpoints.share_link_auth import ShareLinkUserAuthView, ShareLinkEmailAuthView from seahub.api2.endpoints.internal_api import InternalUserListView, InternalCheckShareLinkAccess, \ InternalCheckFileOperationAccess -from seahub.auth.views import multi_adfs_sso +from seahub.auth.views import multi_adfs_sso, login_simple_check from seahub.views import * from seahub.views.mobile import mobile_login from seahub.views.sysadmin import * @@ -950,6 +950,12 @@ urlpatterns += [ re_path(r'^krb5-login/', shib_login, name="krb5_login"), ] + + +if getattr(settings, 'ENABLE_LOGIN_SIMPLE_CHECK', False): + urlpatterns += [ + re_path(r'^sso-auto-login/', login_simple_check), + ] # serve office converter static files from seahub.utils import HAS_OFFICE_CONVERTER diff --git a/thirdpart/registration/auth_urls.py b/thirdpart/registration/auth_urls.py index 5fc9c44dc0d..1cb322d80c8 100644 --- a/thirdpart/registration/auth_urls.py +++ b/thirdpart/registration/auth_urls.py @@ -54,13 +54,6 @@ name='two_factor_auth'), ] -if getattr(settings, 'ENABLE_LOGIN_SIMPLE_CHECK', False): - urlpatterns += [ - path('login/simple_check/', - auth_views.login_simple_check), - ] - - urlpatterns += [ path('login/', auth_views.login,