Commit 79864180 authored by klafyvel's avatar klafyvel

Merge branch 'pseudo_insensitive' into 'dev'

Case insensitive search

See merge request federez/re2o!390
parents 7da4021a dc83766b
Pipeline #935 failed with stage
......@@ -289,7 +289,7 @@ def check_user_machine_and_register(nas_type, username, mac_address):
Renvoie le mot de passe ntlm de l'user si tout est ok
Utilise pour les authentifications en 802.1X"""
interface = Interface.objects.filter(mac_address=mac_address).first()
user = User.objects.filter(pseudo=username).first()
user = User.objects.filter(pseudo__iexact=username).first()
if not user:
return (False, u"User inconnu", '')
if not user.has_access():
......
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