Fix sendmail and improve register error catching
This commit is contained in:
@@ -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;
|
||||
|
@@ -37,4 +37,4 @@ class SendToken extends Mailable
|
||||
->subject('Token to complete registration')
|
||||
->with(['token'=>$this->token]);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user