From 6c1701ea5a18634ef20deacb06ed10e845d7dd1a Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sat, 16 Feb 2019 18:13:24 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20for=20email=20causing=20infinite=20?= =?UTF-8?q?=E2=80=98call=E2=80=99=20recursion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/src/Grav/Common/User/FlexUser/UserIndex.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/src/Grav/Common/User/FlexUser/UserIndex.php b/system/src/Grav/Common/User/FlexUser/UserIndex.php index f3b3b69af..b6038c8f9 100644 --- a/system/src/Grav/Common/User/FlexUser/UserIndex.php +++ b/system/src/Grav/Common/User/FlexUser/UserIndex.php @@ -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 {