diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 51911119..765b44cb 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -135,10 +135,8 @@ class Auth extends BaseController $user = $repository->mainUser($user); $pid = $this->request->param('spread', 0); $repository->bindSpread($user, intval($pid)); - $tokenInfo = $repository->createToken($user); $repository->loginAfter($user); - return app('json')->success($repository->returnToken($user, $tokenInfo)); } diff --git a/public/index.html b/public/index.html index de8fcb30..cf010ab8 100644 --- a/public/index.html +++ b/public/index.html @@ -2,4 +2,4 @@ document.write('') if(window.location.protocol == 'https:'){ document.write('') - }