Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
r350178982 committed Oct 15, 2024
1 parent e32e858 commit 578288c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 7 additions & 1 deletion seahub/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions thirdpart/registration/auth_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 578288c

Please sign in to comment.