src/ldt/ldt/auth/views.py
author cavaliet
Thu, 28 Nov 2013 16:44:30 +0100
changeset 1264 77e0dbc58104
parent 1191 b6e0b1811723
child 1431 bdefbdf222e7
permissions -rw-r--r--
v1.51.16 debug multisegments

from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.views import login as django_login
from ldt.auth import social_list

def login(request, template_name='registration/login.html',
          redirect_field_name=REDIRECT_FIELD_NAME,
          authentication_form=AuthenticationForm,
          current_app=None):
    extra_context = {'social_list': social_list}
    
    return django_login(request, template_name, redirect_field_name, authentication_form, current_app, extra_context)