mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 11:37:12 +02:00
Fix for email causing infinite ‘call’ recursion
This commit is contained in:
@@ -85,6 +85,8 @@ class UserIndex extends FlexIndex
|
||||
$user = $this->withKeyField('storage_key')->get($query);
|
||||
} elseif ($field === 'flex_key') {
|
||||
$user = $this->withKeyField('flex_key')->get($query);
|
||||
} elseif ($field === 'email') {
|
||||
$user = $this->withKeyField('email')->get($query);
|
||||
} elseif ($field === 'username') {
|
||||
$user = $this->get(mb_strtolower($query));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user