Skip to content

Commit

Permalink
Merge pull request #63 from jeroendesloovere/form-validate
Browse files Browse the repository at this point in the history
Form validate
  • Loading branch information
carakas authored Jun 27, 2018
2 parents 30dd35e + 0fca9a2 commit 6778d6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spoon/form/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -1151,8 +1151,7 @@ public function validate()
else
{
// get the submitted token
$data = $this->getField('form_token')->getMethod(true);
$submittedToken = isset( $data['form_token'] ) ? $data['form_token'] : null;
$submittedToken = $this->getField('form_token')->getValue();

// compare tokens
if($submittedToken != $this->getTokenFromSession()) $errors .= $this->tokenError;
Expand Down

0 comments on commit 6778d6b

Please sign in to comment.