Guillermo - Issue #30

This commit is contained in:
AntonyAntonio 2017-06-13 01:03:06 -03:00
parent 463853aa70
commit 06cf7ddcbe
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,7 @@ DataValidator::with('CustomValidations', true);
* @apiUse NO_PERMISSION
* @apiUse INVALID_CONTENT
* @apiUse INVALID_TICKET
* @apiUse INVALID_TOKEN
*
* @apiSuccess {Object} data Empty object
*
@ -63,7 +64,7 @@ class CommentController extends Controller {
],
'csrf_token' => [
'validation' => DataValidator::equals($session->getToken()),
'error' => Controller::request('csrf_token') . ' ' . $session->getToken()
'error' => ERRORS::INVALID_TOKEN
]
]

View File

@ -16,6 +16,7 @@ DataValidator::with('CustomValidations', true);
* @apiParam {Number} ticketNumber The number of the ticket.
*
* @apiUse INVALID_TICKET
* @apiUse INVALID_TOKEN
* @apiUse NO_PERMISSION
*
* @apiSuccess {[Ticket](#api-Data_Structures-ObjectTicket)} data Information about the requested ticket.
@ -52,7 +53,7 @@ class TicketGetController extends Controller {
],
'csrf_token' => [
'validation' => DataValidator::equals($session->getToken()),
'error' => $session->getToken() . ' != ' . Controller::request('csrf_token')
'error' => ERRORS::INVALID_TOKEN
]
]
];