From 4e80f3938ab83f2628ee848fe40a66cf421c6abd Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Thu, 2 May 2024 11:04:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E5=8F=B0=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E7=99=BB=E5=BD=95=E5=89=8D=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Admin/Services/Session.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Http/Admin/Services/Session.php b/app/Http/Admin/Services/Session.php index 232ca195..f20a7ec1 100644 --- a/app/Http/Admin/Services/Session.php +++ b/app/Http/Admin/Services/Session.php @@ -8,6 +8,7 @@ namespace App\Http\Admin\Services; use App\Services\Auth\Admin as AdminAuth; +use App\Services\Auth\Home as HomeAuth; use App\Validators\Account as AccountValidator; class Session extends Service @@ -35,6 +36,8 @@ class Session extends Service $this->auth->saveAuthInfo($user); + $this->loginHome($user); + $this->eventsManager->fire('Account:afterLogin', $this, $user); } @@ -47,4 +50,11 @@ class Session extends Service $this->eventsManager->fire('Account:afterLogout', $this, $user); } + protected function loginHome($user) + { + $auth = new HomeAuth(); + + $auth->saveAuthInfo($user); + } + }