Skip to content

Commit 010fa68

Browse files
committed
docs: fix sample code
The CSRF filter alias name is lower case.
1 parent 562c12e commit 010fa68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎user_guide_src/source/libraries/throttler.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ filter::
117117
Next, we assign it to all POST requests made on the site::
118118

119119
public $methods = [
120-
'post' => ['throttle', 'CSRF'],
120+
'post' => ['throttle', 'csrf'],
121121
];
122122

123123
And that's all there is to it. Now all POST requests made on the site will have to be rate limited.

0 commit comments

Comments
 (0)