Skip to content

Commit

Permalink
Revert "Create login facility for installations not using REMOTE_USER…
Browse files Browse the repository at this point in the history
… middleware"

This reverts commit 7188a62.
  • Loading branch information
profcturner committed Sep 18, 2018
1 parent 46f9ee5 commit a8e6626
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 48 deletions.
13 changes: 0 additions & 13 deletions WAM/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,6 @@
}
}

#DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'wam',
# 'USER': 'wam',
# 'PASSWORD': 'wam',
# 'HOST': 'localhost', # Or an IP Address that your DB is hosted on
# 'PORT': '3306',
# }
# }



EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

# Internationalization
Expand Down
5 changes: 0 additions & 5 deletions WAM/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"""
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views as auth_views


from loads import views

Expand All @@ -33,8 +31,6 @@

urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^accounts/login/$', auth_views.login, name='login'),
url(r'^accounts/logout/$', auth_views.logout, name='logout'),
url(r'^workpackage/change/$', views.workpackage_change, name='workpackage_change'),
url(r'^workpackage/migrate/$', views.workpackage_migrate, name='workpackage_migrate'),
url(r'^loads/$', views.loads, name='loads'),
Expand Down Expand Up @@ -72,7 +68,6 @@
url(r'^projects/generate_activities/(?P<project_id>[0-9]+)$', views.projects_generate_activities, name='projects_generate_activities'),
url(r'^staff/allocation/(?P<package_id>[0-9]+)/(?P<staff_id>[0-9]+)$', views.staff_module_allocation, name='staff_module_allocation'),
url(r'^forbidden/$', views.forbidden, name='forbidden'),
url(r'^logged_out/$', views.logged_out, name='logged out'),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', admin.site.urls),
url(r'^cadmin/$', views.custom_admin_index, name='custom_admin_index'),
Expand Down
7 changes: 0 additions & 7 deletions loads/templates/loads/logged_out.html

This file was deleted.

14 changes: 0 additions & 14 deletions loads/templates/registration/login.html

This file was deleted.

9 changes: 0 additions & 9 deletions loads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,6 @@ def forbidden(request):
return HttpResponse(template.render({}, request))


def logged_out(request):
"""Show that you are logged out"""

template = loader.get_template('loads/logged_out.html')

return HttpResponse(template.render({}, request))



@login_required
def download_assessment_resource(request, resource_id):
"""Download an assessment resource"""
Expand Down

0 comments on commit a8e6626

Please sign in to comment.