=== modified file 'lava_server/settings/common.py'
@@ -126,6 +126,7 @@
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
# Admin docs disabled due to: https://code.djangoproject.com/ticket/6681
+ 'longerusername',
'linaro_django_xmlrpc',
'lava_markitup', # Support app for MarkItUp in LAVA
'south',
=== modified file 'lava_server/urls.py'
@@ -21,6 +21,7 @@
handler404, include, patterns, url)
from django.contrib import admin
from staticfiles.urls import staticfiles_urlpatterns
+from longerusername.forms import AuthenticationForm
from linaro_django_xmlrpc import urls as api_urls
from lava_server.extension import loader
@@ -46,8 +47,12 @@
url(r'^{mount_point}version/$'.format(mount_point=settings.MOUNT_POINT),
version,
name='lava.version_details'),
- url(r'^{mount_point}accounts/'.format(mount_point=settings.MOUNT_POINT),
- include('django.contrib.auth.urls')),
+
+ url(r'^{mount_point}accounts/login/$'.format(mount_point=settings.MOUNT_POINT),
+ 'django.contrib.auth.views.login', {'authentication_form': AuthenticationForm}),
+ url(r'^{mount_point}accounts/logout/$'.format(mount_point=settings.MOUNT_POINT),
+ 'django.contrib.auth.views.logout'),
+
url(r'^{mount_point}admin/'.format(mount_point=settings.MOUNT_POINT),
include(admin.site.urls)),
url(r'^{mount_point}openid/'.format(mount_point=settings.MOUNT_POINT),
=== modified file 'setup.py'
@@ -73,6 +73,7 @@
'south >= 0.7.3',
'versiontools >= 1.8',
'markdown >= 2.0.3',
+ 'longerusername',
# optional dependency; for authentication with Attlassian Crowd SSO
# 'django-crowd-rest-backend >= 0.3,