Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Fix JWT auth
Browse files Browse the repository at this point in the history
  • Loading branch information
populov committed Jan 12, 2024
1 parent 161d801 commit 08c343b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "4.x-dev"
"dev-master": "5.x-dev"
},
"laravel": {
"providers": [
Expand Down
1 change: 0 additions & 1 deletion src/Api/ForgotPasswordApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class ForgotPasswordApiController extends Controller
*/
public function __construct()
{
parent::__construct();
$this->middleware('guest');
}

Expand Down
6 changes: 3 additions & 3 deletions src/Api/JWTAuthApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Saritasa\LaravelControllers\Responses\ResponsesTrait;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Tymon\JWTAuth\Exceptions\JWTException;
use Tymon\JWTAuth\JWTGuard;
use Tymon\JWTAuth\JWTAuth;

/**
* Authenticate API Controller. Uses JWT authentication.
Expand All @@ -22,14 +22,14 @@ class JWTAuthApiController extends Controller
/**
* Jwt auth service.
*
* @var JWTGuard
* @var JWTAuth
*/
protected $jwtAuth;

/**
* Authenticate API Controller. Uses JWT authentication.
*/
public function __construct(JWTGuard $jwtAuth)
public function __construct(JWTAuth $jwtAuth)
{
$this->jwtAuth = $jwtAuth;
}
Expand Down

0 comments on commit 08c343b

Please sign in to comment.