/usr/lib/python2.7/dist-packages/hijack/urls.py is in python-django-hijack 2.0.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from compat import url
from hijack import settings as hijack_settings
from hijack.views import release_hijack, disable_hijack_warning, login_with_id, login_with_email, login_with_username
urlpatterns = [
url(r'^release-hijack/$', release_hijack, name='release_hijack')
]
if hijack_settings.HIJACK_DISPLAY_WARNING:
urlpatterns.append(url(r'^disable-hijack-warning/$', disable_hijack_warning, name='disable_hijack_warning'))
hijacking_user_attributes = hijack_settings.HIJACK_URL_ALLOWED_ATTRIBUTES
if 'email' in hijacking_user_attributes:
urlpatterns.append(url(r'^email/(?P<email>[^@]+@[^@]+\.[^@]+)/$', login_with_email, name='login_with_email'))
if 'username' in hijacking_user_attributes:
urlpatterns.append(url(r'^username/(?P<username>.*)/$', login_with_username, name='login_with_username'))
if 'user_id' in hijacking_user_attributes:
urlpatterns.append(url(r'^(?P<user_id>[\w-]+)/$', login_with_id, name='login_with_id'))
|