mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-08 06:16:02 +01:00
force lowercase of username
This commit is contained in:
@@ -202,6 +202,9 @@ class AdminPlugin extends Plugin
|
|||||||
// Don't store the username: that is part of the filename
|
// Don't store the username: that is part of the filename
|
||||||
unset($data['username']);
|
unset($data['username']);
|
||||||
|
|
||||||
|
// Extra lowercase to ensure file is saved lowercase
|
||||||
|
$username = strtolower($username);
|
||||||
|
|
||||||
$inflector = new Inflector();
|
$inflector = new Inflector();
|
||||||
|
|
||||||
$data['fullname'] = isset($data['fullname']) ? $data['fullname'] : $inflector->titleize($username);
|
$data['fullname'] = isset($data['fullname']) ? $data['fullname'] : $inflector->titleize($username);
|
||||||
|
|||||||
Reference in New Issue
Block a user