Skip to content

Commit

Permalink
version added
Browse files Browse the repository at this point in the history
  • Loading branch information
94noni authored Oct 30, 2023
1 parent 0f7af22 commit 1b79509
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion security/impersonating_user.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ listener:
;
};
To switch to another user, leverage the add a query string with the ``_switch_user``
To switch to another user, add a query string with the ``_switch_user``
parameter and the username (or whatever field our user provider uses to load users)
as the value to the current URL:

Expand All @@ -74,6 +74,10 @@ as the value to the current URL:

You can leverage the Twig function ``impersonation_path('thomas')``

.. versionadded:: 6.4

The ``impersonation_path()`` function was introduced in Symfony 6.4.

.. tip::

Instead of adding a ``_switch_user`` query string parameter, you can pass
Expand Down

0 comments on commit 1b79509

Please sign in to comment.