From ac1bc4b2ce6249d36433e93f080532c60b43d44d Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 23 Jan 2014 08:58:25 +0100 Subject: [PATCH] [FIX] Allow admin logins in maintenance mode Fixes #1489 --- public/include/classes/user.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/include/classes/user.class.php b/public/include/classes/user.class.php index f43582e7..552b8562 100644 --- a/public/include/classes/user.class.php +++ b/public/include/classes/user.class.php @@ -22,6 +22,9 @@ class User extends Base { public function getUserId($username, $lower=false) { return $this->getSingle($username, 'id', 'username', 's', $lower); } + public function getUserIdByEmail($email, $lower=false) { + return $this->getSingle($email, 'id', 'email', 's', $lower); + } public function getUserEmail($username, $lower=false) { return $this->getSingle($username, 'email', 'username', 's', $lower); }