mirror of
https://github.com/getgrav/grav.git
synced 2026-05-07 10:17:16 +02:00
force lowercase of username
This commit is contained in:
@@ -32,6 +32,9 @@ class User extends Data
|
||||
{
|
||||
$locator = self::getGrav()['locator'];
|
||||
|
||||
// force lowercase of username
|
||||
$username = strtolower($username);
|
||||
|
||||
$blueprints = new Blueprints('blueprints://');
|
||||
$blueprint = $blueprints->get('user/account');
|
||||
$file_path = $locator->findResource('account://' . $username . YAML_EXT);
|
||||
|
||||
Reference in New Issue
Block a user