Skip to content

Commit

Permalink
Merge pull request #19 from koriym/token
Browse files Browse the repository at this point in the history
fix token value input
  • Loading branch information
koriym committed Sep 25, 2015
2 parents e3195e6 + 2a3e51d commit 46060d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AuraInputInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function invoke(MethodInvocation $invocation)
/* @var $formValidation FormValidation */
$formValidation = $this->reader->getMethodAnnotation($invocation->getMethod(), AbstractValidation::class);
$form = $this->getFormProperty($formValidation, $object);
$data = $form instanceof SubmitInterface ? $object->submit() : $this->getNamedArguments($invocation);
$data = $form instanceof SubmitInterface ? $form->submit() : $this->getNamedArguments($invocation);
$isValid = $this->isValid($data, $form);
if ($isValid === true) {
// validation success
Expand Down Expand Up @@ -75,7 +75,7 @@ private function getNamedArguments(MethodInvocation $invocation)
}
// has token ?
if (isset($_POST[AntiCsrf::TOKEN_KEY])) {
$submit += $_POST[AntiCsrf::TOKEN_KEY];
$submit[AntiCsrf::TOKEN_KEY] = $_POST[AntiCsrf::TOKEN_KEY];
}

return $submit;
Expand Down

0 comments on commit 46060d5

Please sign in to comment.