We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e11eea commit 33d0f19Copy full SHA for 33d0f19
security/custom_authenticator.rst
@@ -168,6 +168,11 @@ can define what happens in these cases:
168
useful for e.g. login forms, where the login controller is run again
169
with the login errors.
170
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
+
176
**Caution**: Never use ``$exception->getMessage()`` for ``AuthenticationException``
177
instances. This message might contain sensitive information that you
178
don't want to be publicly exposed. Instead, use ``$exception->getMessageKey()``
0 commit comments