Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Gigadrive
qpost
qpost
Commits
d25b5c11
Verified
Commit
d25b5c11
authored
Aug 29, 2020
by
Mehdi Baaboura
Browse files
Added $token to response in TokenController#verify for debug purposes
parent
f91fc90a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/Controller/API/TokenController.php
src/Controller/API/TokenController.php
+2
-1
No files found.
src/Controller/API/TokenController.php
View file @
d25b5c11
...
...
@@ -97,7 +97,8 @@ class TokenController extends APIController {
if
(
!
$token
->
isExpired
())
{
return
$this
->
apiService
->
json
([
"status"
=>
"Token valid"
,
"user"
=>
$this
->
apiService
->
serialize
(
$user
)
"user"
=>
$this
->
apiService
->
serialize
(
$user
),
"token"
=>
$token
]);
}
else
{
return
$this
->
error
(
"Token expired"
,
Response
::
HTTP_FORBIDDEN
);
...
...
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