Fix sendmail and improve register error catching
This commit is contained in:
parent
a9576422ee
commit
35b5bc2263
@ -165,13 +165,14 @@ class Register extends Control
|
||||
public function process()
|
||||
{
|
||||
$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 {
|
||||
$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();
|
||||
$this->so->sendBaseline($this->so->client(), GREEN . 'ACCOUNT CREATED, PRESS '.HASH.' TO CONTINUE...'.WHITE);
|
||||
$this->state['action'] = ACTION_NEXT;
|
||||
|
@ -99,7 +99,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'sendmail' => '/usr/sbin/sendmail -bs',
|
||||
'sendmail' => '/usr/sbin/sendmail -t',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user