Skip to content

Commit b620429

Browse files
committed
minor #17430 [Security] Add form_only option (mdoutreluingne)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Security] Add form_only option Fixes #16040 Commits ------- 4559b9c [Security] Add form_only option
2 parents efa1982 + 4559b9c commit b620429

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)