Skip to content
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