//$u->company_id = $this->company->id;
if (empty($_REQUEST['username'])) { //|| (strpos($_REQUEST['username'], '@') < 1)) {
- return $this->errmsg('bad_1');
+ $this->jerr('Missing username');
}
$u->email = $_REQUEST['username'];
if ($u->count() > 1 || !$u->find(true)) {
- return $this->errmsg('bad_2');
+ $this->jerr('Bad Username / Password combination');
}
}
- return $this->errmsg('bad_3'); // - " . htmlspecialchars(print_r($_POST,true))."'");
+ $this->jerr('Bad Username / Password combination'); // - " . htmlspecialchars(print_r($_POST,true))."'");
}