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