From 805b04a7f8b43ab39d65903ba7ccaf6fce8a2400 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Wed, 24 Jun 2020 09:09:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=8B=E4=BB=B6=E7=9B=91?= =?UTF-8?q?=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/login/LoginService.php | 7 +++++++ catch/login/route.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/catch/login/LoginService.php b/catch/login/LoginService.php index ad3d8b2..6b1d643 100644 --- a/catch/login/LoginService.php +++ b/catch/login/LoginService.php @@ -20,4 +20,11 @@ class LoginService extends ModuleService // TODO: Implement loadRouteFrom() method. return __DIR__ . DIRECTORY_SEPARATOR . 'route.php'; } + + public function loadEvents() + { + return [ + 'loginLog' => [ LoginLogEvent::class ], + ]; + } } \ No newline at end of file diff --git a/catch/login/route.php b/catch/login/route.php index ff5100a..88956c9 100644 --- a/catch/login/route.php +++ b/catch/login/route.php @@ -4,6 +4,6 @@ $router->group(function () use ($router){ $router->post('login', '\catchAdmin\login\controller\Index@login'); $router->post('logout', '\catchAdmin\login\controller\Index@logout'); $router->post('refresh/token', '\catchAdmin\login\controller\Index@refreshToken'); -})->middleware('auth'); +});