Skip to content

Commit 4bf4759

Browse files
Simplified explanation
1 parent 5af700b commit 4bf4759

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

reference/configuration/security.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,9 @@ form_only
357357

358358
**type**: ``boolean`` **default**: ``false``
359359

360-
By setting this option to ``true``, there will be a check the content type, which will prevent the
361-
:class:`Symfony\\Component\\Security\\Http\Authenticator\\FormLoginAuthenticator` from responding to requests
362-
that should be handled by :class:`Symfony\\Component\\Security\\Http\Authenticator\\JsonLoginAuthenticator` (i.e. the
363-
method :method:`FormLoginAuthenticator::supports <Symfony\\Component\\Security\\Http\Authenticator\\FormLoginAuthenticator::supports>`
364-
will return ``false`` if the content type is ``application/json`` and ``true`` for form data).
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`.
365363
366364
.. versionadded:: 5.4
367365

0 commit comments

Comments
 (0)