Skip to content

Commit 374cbdf

Browse files
committed
minor #13666 Custom User Checker, AuthenticationException is allowed (umpirsky)
This PR was submitted for the 5.0 branch but it was squashed and merged into the 4.4 branch instead. Discussion ---------- Custom User Checker, AuthenticationException is allowed According to https://github.com/symfony/security-core/blob/master/Authentication/AuthenticationProviderManager.php#L80-L93, and my local tests, both works. Commits ------- 3b60ac0 Custom User Checker, AuthenticationException is allowed
2 parents eca3b0f + 3b60ac0 commit 374cbdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/user_checkers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ User checkers are classes that must implement the
1616
defines two methods called ``checkPreAuth()`` and ``checkPostAuth()`` to
1717
perform checks before and after user authentication. If one or more conditions
1818
are not met, an exception should be thrown which extends the
19-
:class:`Symfony\\Component\\Security\\Core\\Exception\\AccountStatusException`::
19+
:class:`Symfony\\Component\\Security\\Core\\Exception\\AccountStatusException`: or :class:`Symfony\\Component\\Security\\Core\\Exception\\AuthenticationException`::
2020

2121
namespace App\Security;
2222

0 commit comments

Comments
 (0)