File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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\A uthenticator\\ FormLoginAuthenticator ` from responding to requests
362- that should be handled by :class: `Symfony\\ Component\\ Security\\ Http\A uthenticator\\ JsonLoginAuthenticator ` (i.e. the
363- method :method: `FormLoginAuthenticator::supports <Symfony\\ Component\\ Security\\ Http\A uthenticator\\ 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
You can’t perform that action at this time.
0 commit comments