Skip to content

Commit

Permalink
fix baserproject#2630 【システム】ログアウトしても代理ログイン情報が記録されたまま
Browse files Browse the repository at this point in the history
  • Loading branch information
dovanhung committed Aug 17, 2023
1 parent 039fc74 commit 79fcaeb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions plugins/baser-core/src/Controller/Admin/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,11 @@ public function back_agent(UsersServiceInterface $service)
*/
public function logout(UsersServiceInterface $service)
{
// CUSTOMIZE ADD 2023/08/17 HungDV
// 代理ログインした場合、ログアウト前にセッションを削除する。
// >>>
if (BcUtil::isAgentUser()) {
$session = $this->request->getSession();
$session->delete('AuthAgent');
}
// <<<

/* @var User $user */
$user = $this->Authentication->getIdentity();
Expand Down

0 comments on commit 79fcaeb

Please sign in to comment.