@@ -44,7 +44,10 @@ class User
public function login(){
- $token = $this->request->header('Authorization');
+ $token = $this->request->param('token');
+ if (!$token) {
+ return error(lang('user.token_error'));
+ }
try {
Db::startTrans();