@@ -23,9 +23,9 @@ |
||
| 23 | 23 | $custom = $this->convertToArray($custom); |
| 24 | 24 | Debug::info('headers: '.implode('-',$request->all())); |
| 25 | 25 | if($token = $this->auth->setRequest($request)->getToken()) { |
| 26 | - }else if ($this->auth->getUserModel()){ |
|
| 26 | + } else if ($this->auth->getUserModel()){ |
|
| 27 | 27 | $token = $this->auth->fromUser($this->auth->getUserModel(), $custom); |
| 28 | - }else { |
|
| 28 | + } else { |
|
| 29 | 29 | return $this->respond('tymon.jwt.absent', 'token_not_provided', 401); |
| 30 | 30 | } |
| 31 | 31 | |