parent::getAuth(); // load company!
$au = $this->getAuthUser();
if (!$au) {
- $this->jerr("Not authenticated", array('authFailure' => true));
+ $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true));
}
$this->authUser = $au;
if ($au->company()->comptype != 'OWNER') {
return true;
}
- function post()
+ function post($v)
{
$si = DB_DataObject::factory('Signup');
$this->jok("OK");
}
- $p = DB_DataObject::factory("Person");
+ $p = DB_DataObject::factory("core_person");
$p->setFrom($_REQUEST);
$p->insert();