diff --git a/mirzaev/skillparts/system/models/AccountForm.php b/mirzaev/skillparts/system/models/AccountForm.php index 3b6a5ba..bcd473d 100644 --- a/mirzaev/skillparts/system/models/AccountForm.php +++ b/mirzaev/skillparts/system/models/AccountForm.php @@ -1,9 +1,12 @@ user->login($this->getAccount(), $this->auto ? 3600 * 24 * 30 : 0); + return yii::$app->user->login($this->getAccount(), $this->auto ? 3600 * 24 * 30 : 0); } return false; @@ -113,7 +116,7 @@ class AccountForm extends Model // Запись параметров $this->account->mail = $this->mail; - $this->account->pswd = Yii::$app->security->generatePasswordHash($this->pswd); + $this->account->pswd = yii::$app->security->generatePasswordHash($this->pswd); // Регистрация return $this->account->save(); diff --git a/mirzaev/skillparts/system/views/account/authentication.php b/mirzaev/skillparts/system/views/account/authentication.php index abfb715..76715be 100644 --- a/mirzaev/skillparts/system/views/account/authentication.php +++ b/mirzaev/skillparts/system/views/account/authentication.php @@ -12,7 +12,7 @@ use yii;
\ No newline at end of file diff --git a/mirzaev/skillparts/system/views/account/index.php b/mirzaev/skillparts/system/views/account/index.php index 933bc9b..938f0a7 100644 --- a/mirzaev/skillparts/system/views/account/index.php +++ b/mirzaev/skillparts/system/views/account/index.php @@ -40,7 +40,7 @@ use app\models\AccountForm; = Html::submitButton('Регистрация', ['name' => 'submitRegistration', 'onclick' => 'registration(this.parentElement);', 'class' => 'col-12 ml-auto btn btn-success btn-sm button_clean']) ?> - ActiveForm::end(); ?> + \ No newline at end of file