[FIX] Allow admin logins in maintenance mode

Fixes #1489
This commit is contained in:
Sebastian Grewe 2014-01-23 08:58:25 +01:00
parent cde6227692
commit ac1bc4b2ce

View File

@ -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);
}