public function loadByEmail($email, $accountId = null)
{
if ($accountId) {
$info = $this->db->GetRow("SELECT * FROM account_users WHERE `email` = ? AND account_id = ? LIMIT 1", [$email, $accountId]);
} else {
$info = $this->db->GetRow("SELECT * FROM account_users WHERE `email` = ? LIMIT 1", [$email]);
}
return !$info ? false : $this->loadBy($info);
}