mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 11:55:52 +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
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user