Enhancements to Mailer exception handling fixes #79

This commit is contained in:
Kartik Visweswaran
2017-10-18 18:15:15 +05:30
parent 18ea0c664a
commit 3feae01a17
35 changed files with 302 additions and 38 deletions

View File

@ -114,7 +114,6 @@ class RegistrationController extends Controller
)
);
$this->trigger(FormEvent::EVENT_AFTER_REGISTER, $event);
return $this->render(
'/shared/message',
[
@ -122,16 +121,11 @@ class RegistrationController extends Controller
'module' => $this->module,
]
);
} else {
Yii::$app->session->setFlash( 'danger', Yii::t('usuario', 'User could not be registered.'));
}
}
return $this->render(
'register',
[
'model' => $form,
'module' => $this->module,
]
);
return $this->render('register', ['model' => $form, 'module' => $this->module]);
}
public function actionConnect($code)