Typo fix for #51

This commit is contained in:
MKiselev
2017-08-09 01:53:05 +05:00
parent dbfe4308d5
commit f1ad782102
2 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class SocialNetworkAuthenticateService implements ServiceInterface
Yii::$app->session->setFlash('danger', Yii::t('usuario', 'Your account has been blocked.'));
$this->authAction->setSuccessUrl(Url::to(['/user/security/login']));
} else {
Yii::$app->user->login($account->user, $this->controller->module->rememberLoginLifeSpan);
Yii::$app->user->login($account->user, $this->controller->module->rememberLoginLifespan);
$this->authAction->setSuccessUrl(Yii::$app->getUser()->getReturnUrl());
}
} else {