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); + } + }