protected function buildRoutesForAuth(Router $router)
    {
        $auth = $this->core->auth();

        $router->group(
            [
                'prefix' => 'auth',
            ],
            function (Router $router) use ($auth) {

                $router->get('login',  $auth->getRouteLoginAction());
                $router->post('login', $auth->getRouteLoginPostAction());
                $router->get('logout', $auth->getRouteLogoutAction());

                $router->get('password/email',          $auth->getRoutePasswordEmailGetAction());
                $router->post('password/email',         $auth->getRoutePasswordEmailPostAction());
                $router->get('password/reset/{token?}', $auth->getRoutePasswordResetGetAction());
                $router->post('password/reset',         $auth->getRoutePasswordResetPostAction());
            }
        );
    }