File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,11 @@ User checkers are classes that must implement the
15
15
:class: `Symfony\\ Component\\ Security\\ Core\\ User\\ UserCheckerInterface `. This interface
16
16
defines two methods called ``checkPreAuth() `` and ``checkPostAuth() `` to
17
17
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::
22
23
23
24
namespace App\Security;
24
25
You can’t perform that action at this time.
0 commit comments