Force loading the lowercase version of a user filename.

This commit is contained in:
Djamil Legato
2018-05-16 12:24:50 -07:00
parent af5f5888ca
commit 47dcea06c7

View File

@@ -121,7 +121,7 @@ class LoginLDAPPlugin extends Plugin
$ldap->bind($username, $credentials['password']); $ldap->bind($username, $credentials['password']);
// Create Grav User // Create Grav User
$grav_user = User::load($username); $grav_user = User::load(strtolower($username));
// Set defaults with only thing we know... username provided // Set defaults with only thing we know... username provided
$grav_user['login'] = $credentials['username']; $grav_user['login'] = $credentials['username'];