Răsfoiți Sursa

HUE-8521 [auth] Protect against empty LDAP login username

Romain Rigaux 7 ani în urmă
părinte
comite
a4f0e76
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      desktop/core/src/desktop/auth/forms.py

+ 1 - 1
desktop/core/src/desktop/auth/forms.py

@@ -128,7 +128,7 @@ class LdapAuthenticationForm(AuthenticationForm):
 
   def authenticate(self):
     request = None
-    username = self.cleaned_data.get('username')
+    username = self.cleaned_data.get('username') or ''
     password = self.cleaned_data.get('password')
     server = self.cleaned_data.get('server')