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
38d52fd9
Commit
38d52fd9
authored
Mar 19, 2019
by
Vidhyut Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Formatting
parent
c0bb6668
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
AuthController.php
app/Http/Controllers/Api/V1/AuthController.php
+2
-5
Kernel.php
app/Http/Kernel.php
+1
-1
app.php
config/app.php
+1
-1
No files found.
app/Http/Controllers/Api/V1/AuthController.php
View file @
38d52fd9
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
namespace
App\Http\Controllers\Api\V1
;
namespace
App\Http\Controllers\Api\V1
;
use
Illuminate\Http\Request
;
use
Illuminate\Http\Request
;
use
Validator
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Auth
;
use
Validator
;
class
AuthController
extends
APIController
class
AuthController
extends
APIController
{
{
...
@@ -30,8 +30,7 @@ class AuthController extends APIController
...
@@ -30,8 +30,7 @@ class AuthController extends APIController
try
{
try
{
if
(
!
Auth
::
attempt
(
$credentials
))
if
(
!
Auth
::
attempt
(
$credentials
))
{
{
return
$this
->
throwValidation
(
trans
(
'api.messages.login.failed'
));
return
$this
->
throwValidation
(
trans
(
'api.messages.login.failed'
));
}
}
...
@@ -72,9 +71,7 @@ class AuthController extends APIController
...
@@ -72,9 +71,7 @@ class AuthController extends APIController
public
function
logout
(
Request
$request
)
public
function
logout
(
Request
$request
)
{
{
try
{
try
{
$request
->
user
()
->
token
()
->
revoke
();
$request
->
user
()
->
token
()
->
revoke
();
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
return
$this
->
respondInternalError
(
$e
->
getMessage
());
return
$this
->
respondInternalError
(
$e
->
getMessage
());
}
}
...
...
app/Http/Kernel.php
View file @
38d52fd9
...
@@ -73,6 +73,6 @@ class Kernel extends HttpKernel
...
@@ -73,6 +73,6 @@ class Kernel extends HttpKernel
* Access Middleware
* Access Middleware
*/
*/
'access.routeNeedsRole'
=>
\App\Http\Middleware\RouteNeedsRole
::
class
,
'access.routeNeedsRole'
=>
\App\Http\Middleware\RouteNeedsRole
::
class
,
'access.routeNeedsPermission'
=>
\App\Http\Middleware\RouteNeedsPermission
::
class
'access.routeNeedsPermission'
=>
\App\Http\Middleware\RouteNeedsPermission
::
class
,
];
];
}
}
config/app.php
View file @
38d52fd9
...
@@ -199,7 +199,7 @@ return [
...
@@ -199,7 +199,7 @@ return [
App\Providers\HistoryServiceProvider
::
class
,
App\Providers\HistoryServiceProvider
::
class
,
App\Providers\RouteServiceProvider
::
class
,
App\Providers\RouteServiceProvider
::
class
,
Bvipul\Generator\Provider\CrudGeneratorServiceProvider
::
class
,
Bvipul\Generator\Provider\CrudGeneratorServiceProvider
::
class
,
Laravel\Passport\PassportServiceProvider
::
class
Laravel\Passport\PassportServiceProvider
::
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