diff --git a/frontend/controllers/RegController.php b/frontend/controllers/RegController.php index f5466a9..4162365 100755 --- a/frontend/controllers/RegController.php +++ b/frontend/controllers/RegController.php @@ -58,7 +58,7 @@ class RegController extends Controller $modelLogin->username = $model->username; $modelLogin->password = $model->password; $modelLogin->login(); - Mailer::widget(['type' => 'registration', 'subject'=> 'Спасибо за регистрацию', 'email' => $this->username ]); + Mailer::widget(['type' => 'registration', 'subject'=> 'Спасибо за регистрацию', 'email' => $model->username ]); $this->redirect(['/iam']); } -- libgit2 0.21.4