Skip to content

Commit 4559b9c

Browse files
mdoutreluingnejaviereguiluz
authored andcommitted
[Security] Add form_only option
1 parent 4d40cfd commit 4559b9c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

reference/configuration/security.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,19 @@ failure_path
352352
This is the route or path that the user is redirected to after a failed login attempt.
353353
It can be a relative/absolute URL or a Symfony route name.
354354

355+
form_only
356+
............
357+
358+
**type**: ``boolean`` **default**: ``false``
359+
360+
By setting this option to ``true``, a content type check will be performed when the login form is submitted
361+
(i.e. the login form will be processed if it is the form data, so with a
362+
content type ``application/x-www-form-urlencoded``.
363+
364+
.. versionadded:: 5.4
365+
366+
The ``form_only`` option was introduced in Symfony 5.4.
367+
355368
use_forward
356369
...........
357370

0 commit comments

Comments
 (0)