Skip to content

Commit 33d0f19

Browse files
Adding info about login throttling
1 parent 9e11eea commit 33d0f19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

security/custom_authenticator.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ can define what happens in these cases:
168168
useful for e.g. login forms, where the login controller is run again
169169
with the login errors.
170170

171+
If you're using :ref:`login throttling <security-login-throttling>`,
172+
you can check if ``$exception`` is an instance of
173+
:class:`Symfony\\Component\\Security\\Core\\Exception\\TooManyLoginAttemptsAuthenticationException`
174+
(e.g. to display an appropriate message).
175+
171176
**Caution**: Never use ``$exception->getMessage()`` for ``AuthenticationException``
172177
instances. This message might contain sensitive information that you
173178
don't want to be publicly exposed. Instead, use ``$exception->getMessageKey()``

0 commit comments

Comments
 (0)