Fix sendmail and improve register error catching

This commit is contained in:
Deon George 2018-12-29 15:04:27 +11:00
parent a9576422ee
commit 35b5bc2263
3 changed files with 8 additions and 7 deletions

View File

@ -165,13 +165,14 @@ class Register extends Control
public function process() public function process()
{ {
$o = new User; $o = new User;
$o->login = $this->data['user'];
$o->email = $this->data['email'];
$o->password = $this->data['password'];
$o->name = $this->data['name'];
$o->location = $this->data['location'];
try { try {
$o->login = $this->data['user'];
$o->email = $this->data['email'];
$o->password = $this->data['password'];
$o->name = $this->data['name'];
$o->location = $this->data['location'];
$o->save(); $o->save();
$this->so->sendBaseline($this->so->client(), GREEN . 'ACCOUNT CREATED, PRESS '.HASH.' TO CONTINUE...'.WHITE); $this->so->sendBaseline($this->so->client(), GREEN . 'ACCOUNT CREATED, PRESS '.HASH.' TO CONTINUE...'.WHITE);
$this->state['action'] = ACTION_NEXT; $this->state['action'] = ACTION_NEXT;

View File

@ -99,7 +99,7 @@ return [
| |
*/ */
'sendmail' => '/usr/sbin/sendmail -bs', 'sendmail' => '/usr/sbin/sendmail -t',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------