Skip to content

Commit ef9ec02

Browse files
committed
Fixes
1 parent 4d3eb13 commit ef9ec02

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

security/user_checkers.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ User checkers are classes that must implement the
1515
:class:`Symfony\\Component\\Security\\Core\\User\\UserCheckerInterface`. This interface
1616
defines two methods called ``checkPreAuth()`` and ``checkPostAuth()`` to
1717
perform checks before and after user authentication. If one or more conditions
18-
are not met, an exception should be thrown which extends the
19-
:class:`Symfony\\Component\\Security\\Core\\Exception\\CustomUserMessageAccountStatusException`,
20-
:class:`Symfony\\Component\\Security\\Core\\Exception\\AccountStatusException`
21-
or :class:`Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException`::
18+
are not met, throw an exception which extends the
19+
:class:`Symfony\\Component\\Security\\Core\\Exception\\AccountStatusException` class.
20+
Consider using :class:`Symfony\\Component\\Security\\Core\\Exception\\CustomUserMessageAccountStatusException`,
21+
which extends ``AccountStatusException`` and allows to customize the error message
22+
displayed to the user::
2223

2324
namespace App\Security;
2425

0 commit comments

Comments
 (0)