Commit d706d9f1 authored by Daniel STAN's avatar Daniel STAN

login: username sans @crans.org

parent cf9a1217
......@@ -140,8 +140,7 @@ class LDAPUserBackend(ModelBackend):
except ldap.INVALID_CREDENTIALS:
return None
# On stocke les utilisateurs dans la base django comme "uid@crans.org"
django_username = '%s@crans.org' % username
django_username = username
try:
user = User.objects.get(username=django_username)
except User.DoesNotExist:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment