diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-09-22 10:55:25 -0700 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-09-22 10:55:25 -0700 |
commit | de128ee24c46c6b5408a9197ed0c293800796a47 (patch) | |
tree | 9ab8da831e43bbeae6e7e35a815f95daa321d22d /okupy/accounts/views.py | |
parent | Merge pull request #99 from dastergon/minor_fixes (diff) | |
parent | Add tests for LDAPAuthBackend. (diff) | |
download | identity.gentoo.org-de128ee24c46c6b5408a9197ed0c293800796a47.tar.gz identity.gentoo.org-de128ee24c46c6b5408a9197ed0c293800796a47.tar.bz2 identity.gentoo.org-de128ee24c46c6b5408a9197ed0c293800796a47.zip |
Merge pull request #92 from mgorny/no-django_ldap_auth
Replace django_auth_ldap with own backend
Diffstat (limited to 'okupy/accounts/views.py')
-rw-r--r-- | okupy/accounts/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/okupy/accounts/views.py b/okupy/accounts/views.py index ab96d87..36980ee 100644 --- a/okupy/accounts/views.py +++ b/okupy/accounts/views.py @@ -139,7 +139,10 @@ def login(request): it was successful. If it retrieves None then it failed to login """ try: - user = authenticate(username=username, password=password) + user = authenticate( + request=request, + username=username, + password=password) except Exception as error: logger.critical(error, extra=log_extra_data(request)) logger_mail.exception(error) |