Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

Commit

Permalink
Overwriting CSRF response default 'NOT_SAME' message with one more hu…
Browse files Browse the repository at this point in the history
…man-understandable (and translatable).
  • Loading branch information
rkeet committed Jan 20, 2019
1 parent af6ae1d commit 4b876ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/InputFilter/AbstractFormInputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ public function init()
'required' => true,
'filters' => [],
'validators' => [
['name' => Csrf::class],
[
'name' => Csrf::class,
'options' => [
'messages' => [
Csrf::NOT_SAME => _(
'The form expired or could otherwise not be validated. Please try again.'
),
],
],
],
],
]
);
Expand Down

0 comments on commit 4b876ad

Please sign in to comment.