Skip to content

Adding caution box about no other form allowed #17426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,15 @@ reads the ``_username`` and ``_password`` POST parameter, loads the user via
the user provider, checks the user's credentials and either authenticates the
user or sends them back to the login form where the error can be displayed.

.. caution::

The page at ``check_path`` must not contain another form, since as soon as
any POST data is submitted, the ``FormLoginAuthenticator`` will look for the
fields ``_username`` and ``_password``. If they're not present, you'll get
this error message:

> The key "_username" must be a string, "NULL" given.

To review the whole process:

#. The user tries to access a resource that is protected (e.g. ``/admin``);
Expand Down