force lowercase of username

This commit is contained in:
Andy Miller
2015-12-11 10:34:40 -07:00
parent a5cbf22d77
commit 1d338094f2

View File

@@ -202,6 +202,9 @@ class AdminPlugin extends Plugin
// Don't store the username: that is part of the filename
unset($data['username']);
// Extra lowercase to ensure file is saved lowercase
$username = strtolower($username);
$inflector = new Inflector();
$data['fullname'] = isset($data['fullname']) ? $data['fullname'] : $inflector->titleize($username);