Токен, выписанный на сессию без запоминания должен истекать дольше времени

This commit is contained in:
ErickSkrauch
2016-07-17 19:54:33 +03:00
parent ae3c3b88de
commit e756dbacd6
3 changed files with 17 additions and 6 deletions

View File

@@ -78,10 +78,7 @@ class LoginForm extends ApiForm {
$account->save();
}
/** @var \api\components\User\Component $component */
$component = Yii::$app->user;
return $component->login($account, $this->rememberMe);
return Yii::$app->user->login($account, $this->rememberMe);
}
protected function getAccountClassName() {