mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
require MFA for admin if set
This commit is contained in:
parent
3a3f8ba4ef
commit
ceb06c6e62
@ -129,10 +129,6 @@ backendpatterns = [
|
|||||||
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
|
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||||
url(r'^auth/?', auth_request),
|
url(r'^auth/?', auth_request),
|
||||||
|
|
||||||
url(r'^admin/error_log/', include('error_report.urls')),
|
|
||||||
url(r'^admin/shell/', include('django_admin_shell.urls')),
|
|
||||||
url(r'^admin/', admin.site.urls, name='inventree-admin'),
|
|
||||||
|
|
||||||
url(r'^api/', include(apipatterns)),
|
url(r'^api/', include(apipatterns)),
|
||||||
url(r'^api-doc/', include_docs_urls(title='InvenTree API')),
|
url(r'^api-doc/', include_docs_urls(title='InvenTree API')),
|
||||||
|
|
||||||
@ -165,6 +161,11 @@ frontendpatterns = [
|
|||||||
# plugin urls
|
# plugin urls
|
||||||
get_plugin_urls(), # appends currently loaded plugin urls = None
|
get_plugin_urls(), # appends currently loaded plugin urls = None
|
||||||
|
|
||||||
|
# admin sites
|
||||||
|
url(r'^admin/error_log/', include('error_report.urls')),
|
||||||
|
url(r'^admin/shell/', include('django_admin_shell.urls')),
|
||||||
|
url(r'^admin/', admin.site.urls, name='inventree-admin'),
|
||||||
|
|
||||||
# DB user sessions
|
# DB user sessions
|
||||||
url(r'^accounts/sessions/other/delete/$', view=CustomSessionDeleteOtherView.as_view(), name='session_delete_other', ),
|
url(r'^accounts/sessions/other/delete/$', view=CustomSessionDeleteOtherView.as_view(), name='session_delete_other', ),
|
||||||
url(r'^accounts/sessions/(?P<pk>\w+)/delete/$', view=CustomSessionDeleteView.as_view(), name='session_delete', ),
|
url(r'^accounts/sessions/(?P<pk>\w+)/delete/$', view=CustomSessionDeleteView.as_view(), name='session_delete', ),
|
||||||
|
Loading…
Reference in New Issue
Block a user