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
0107564d
Verified
Commit
0107564d
authored
Aug 29, 2020
by
Mehdi Baaboura
Browse files
Removed debug info from TokenController#verify
parent
a33c8c4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/Controller/API/TokenController.php
src/Controller/API/TokenController.php
+1
-2
No files found.
src/Controller/API/TokenController.php
View file @
0107564d
...
...
@@ -97,8 +97,7 @@ class TokenController extends APIController {
if
(
!
$token
->
isExpired
())
{
return
$this
->
apiService
->
json
([
"status"
=>
"Token valid"
,
"user"
=>
$this
->
apiService
->
serialize
(
$user
),
"token"
=>
$this
->
apiService
->
serialize
(
$token
)
"user"
=>
$this
->
apiService
->
serialize
(
$user
)
]);
}
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