diff --git a/catch/login/controller/Index.php b/catch/login/controller/Index.php index cd68ec6..ce3d208 100644 --- a/catch/login/controller/Index.php +++ b/catch/login/controller/Index.php @@ -12,18 +12,6 @@ use think\captcha\Captcha; class Index extends CatchController { - /** - * 登录 - * - * @time 2019年11月30日 - * @throws \Exception - * @return string - */ - public function index(): string - { - return $this->fetch(); - } - /** * 登陆 * @@ -35,7 +23,7 @@ class Index extends CatchController public function login(LoginRequest $request, CatchAuth $auth) { $params = $request->param(); - + $token = $auth->attempt($params); $user = $auth->user(); @@ -74,16 +62,4 @@ class Index extends CatchController return CatchResponse::fail('登出失败'); } - - /** - * - * @time 2019年12月12日 - * @param Captcha $captcha - * @param null $config - * @return \think\Response - */ - public function captcha(Captcha $captcha, $config = null): \think\Response - { - return $captcha->create($config); - } }