Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
CO-OP Search
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kittisak Maneewong
CO-OP Search
Commits
4d8731b9
Commit
4d8731b9
authored
Apr 08, 2019
by
Kittisak Maneewong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update auth
parent
d3bc2907
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
AuthController.php
app/Http/Controllers/AuthController.php
+1
-1
app.js
public/js/app.js
+0
-0
Toolbar.vue
resources/js/components/Toolbar.vue
+1
-1
api.php
routes/api.php
+2
-1
No files found.
app/Http/Controllers/AuthController.php
View file @
4d8731b9
...
@@ -57,7 +57,7 @@ class AuthController extends Controller
...
@@ -57,7 +57,7 @@ class AuthController extends Controller
public
function
getAuthenticatedUser
()
public
function
getAuthenticatedUser
()
{
{
try
{
try
{
if
(
!
user
=
=
JWTAuth
::
parseToken
()
->
authenticate
())
{
if
(
!
$user
=
JWTAuth
::
parseToken
()
->
authenticate
())
{
return
response
()
->
json
([
'user_not_found'
],
404
);
return
response
()
->
json
([
'user_not_found'
],
404
);
}
}
}
catch
(
Tymon\JWTAuth\Exceptions\TokenExpiredException
$e
)
{
}
catch
(
Tymon\JWTAuth\Exceptions\TokenExpiredException
$e
)
{
...
...
public/js/app.js
View file @
4d8731b9
This diff is collapsed.
Click to expand it.
resources/js/components/Toolbar.vue
View file @
4d8731b9
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"m
x-0 px-0 body-2 font-weight-bold"
>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
<span
class=
"body-2 font-weight-bold"
>
เกี่ยวกับเรา
</span>
</v-btn>
</v-btn>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
<v-btn
v-if=
"!responsive"
flat
color=
"black"
class=
"mx-0 px-0 body-2 font-weight-bold"
>
...
...
routes/api.php
View file @
4d8731b9
...
@@ -16,5 +16,5 @@ use Illuminate\Http\Request;
...
@@ -16,5 +16,5 @@ use Illuminate\Http\Request;
Route
::
group
([
'prefix'
=>
'auth'
],
function
(
$router
)
{
Route
::
group
([
'prefix'
=>
'auth'
],
function
(
$router
)
{
Route
::
post
(
'register'
,
'AuthController@register'
);
Route
::
post
(
'register'
,
'AuthController@register'
);
Route
::
post
(
'login'
,
'AuthController@login'
);
Route
::
post
(
'login'
,
'AuthController@login'
);
Route
::
pos
t
(
'current'
,
'AuthController@getAuthenticatedUser'
);
Route
::
ge
t
(
'current'
,
'AuthController@getAuthenticatedUser'
);
});
});
\ No newline at end of file
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