Merge pull request #1544 from MPOS/maintenance-mode-admin
[FIX] Allow admin logins in maintenance mode
This commit is contained in:
commit
9828458963
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user