Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
c0602e42
Unverified
Commit
c0602e42
authored
Nov 13, 2017
by
Viral Solani
Committed by
GitHub
Nov 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22 from viralsolani/analysis-zD6Dk5
Apply fixes from StyleCI
parents
c07bf5ee
d6eb243e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
AuthController.php
app/Http/Controllers/Api/V1/AuthController.php
+10
-9
Kernel.php
app/Http/Kernel.php
+1
-1
No files found.
app/Http/Controllers/Api/V1/AuthController.php
View file @
c0602e42
...
...
@@ -2,15 +2,15 @@
namespace
App\Http\Controllers\Api\V1
;
use
JWTAuth
;
use
Validator
;
use
Illuminate\Http\Request
;
use
App\Models\Access\User\User
;
use
App\Notifications\Activated
;
use
App\Notifications\Activation
;
use
App\Notifications\PasswordReset
;
use
App\Notifications\PasswordResetted
;
use
Illuminate\Http\Request
;
use
JWTAuth
;
use
Tymon\JWTAuth\Exceptions\JWTException
;
use
Validator
;
/**
* AuthController.
...
...
@@ -18,9 +18,10 @@ use Tymon\JWTAuth\Exceptions\JWTException;
class
AuthController
extends
APIController
{
/**
* Authenticate User
* Authenticate User
.
*
* @param Request $request
*
* @return {mix}
*/
public
function
authenticate
(
Request
$request
)
...
...
app/Http/Kernel.php
View file @
c0602e42
...
...
@@ -73,7 +73,7 @@ class Kernel extends HttpKernel
*/
'access.routeNeedsRole'
=>
\App\Http\Middleware\RouteNeedsRole
::
class
,
'access.routeNeedsPermission'
=>
\App\Http\Middleware\RouteNeedsPermission
::
class
,
#
'jwt.auth' => \App\Http\Middleware\VerifyJWTToken::class,
//
'jwt.auth' => \App\Http\Middleware\VerifyJWTToken::class,
'jwt.auth'
=>
\Tymon\JWTAuth\Middleware\GetUserFromToken
::
class
,
'jwt.refresh'
=>
\Tymon\JWTAuth\Middleware\RefreshToken
::
class
,
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment