|
|
@@ -61,11 +61,10 @@ class SiteController extends Controller
|
|
|
$model = new LoginForm();
|
|
|
if ($model->load(Yii::$app->request->post()) && $model->login()) {
|
|
|
return $this->goBack();
|
|
|
- } else {
|
|
|
- return $this->render('login', [
|
|
|
- 'model' => $model,
|
|
|
- ]);
|
|
|
}
|
|
|
+ return $this->render('login', [
|
|
|
+ 'model' => $model,
|
|
|
+ ]);
|
|
|
}
|
|
|
|
|
|
public function actionLogout()
|
|
|
@@ -82,11 +81,10 @@ class SiteController extends Controller
|
|
|
Yii::$app->session->setFlash('contactFormSubmitted');
|
|
|
|
|
|
return $this->refresh();
|
|
|
- } else {
|
|
|
- return $this->render('contact', [
|
|
|
- 'model' => $model,
|
|
|
- ]);
|
|
|
}
|
|
|
+ return $this->render('contact', [
|
|
|
+ 'model' => $model,
|
|
|
+ ]);
|
|
|
}
|
|
|
|
|
|
public function actionAbout()
|