- $_SESSION['Hydra']['authUser'] = $p ? serialize($p) : false;
-
- //mail pwd
- $c = DB_DataObject::factory('core_email');
- if (!$c->get('name', 'CORE_PERSON_SIGNUP_CONGRATULATION')) {
- $this->jerr("can not find template");
- }
- $ret = $c->send(array(
- 'rcpts' => $this->email,
- 'honor' => $this->honor.". ".$this->lastname,
- 'password' => $temp_pwd
- ), true);
-
- if (is_object($ret)) {
- $this->addEvent('SYSERR',false, $ret->getMessage());
- $this->jerr($ret->getMessage());
- }
- $this->jok("SENT");
- return true;
- }else{
- error_log("db insert error");
- return false;
- }