re #22 fix silly bug

This commit is contained in:
Antonio Ramirez
2017-07-19 00:43:18 +02:00
parent f37504b176
commit 49690a6729

View File

@ -56,7 +56,7 @@ class SwitchIdentityService implements ServiceInterface
throw new ForbiddenHttpException();
}
$user = $this->userQuery->whereId($this->userId)->one();
$session->set($this->switchIdentitySessionKey, $this->userId);
$session->set($this->switchIdentitySessionKey, Yii::$app->user->id);
}
$event = $this->make(UserEvent::class, [$user]);