This repository was archived by the owner on May 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Security \Core \User ;
13
13
14
+ use Symfony \Component \Security \Core \Exception \AccountStatusException ;
15
+
14
16
/**
15
- * UserCheckerInterface checks user account when authentication occurs .
17
+ * Implement to throw AccountStatusException during the authentication process .
16
18
*
17
- * This should not be used to make authentication decisions.
19
+ * Can be used when you want to check the account status, e.g when the account is
20
+ * disabled or blocked. This should not be used to make authentication decisions.
18
21
*
19
22
* @author Fabien Potencier <[email protected] >
20
23
*/
@@ -24,13 +27,17 @@ interface UserCheckerInterface
24
27
* Checks the user account before authentication.
25
28
*
26
29
* @param UserInterface $user a UserInterface instance
30
+ *
31
+ * @throws AccountStatusException
27
32
*/
28
33
public function checkPreAuth (UserInterface $ user );
29
34
30
35
/**
31
36
* Checks the user account after authentication.
32
37
*
33
38
* @param UserInterface $user a UserInterface instance
39
+ *
40
+ * @throws AccountStatusException
34
41
*/
35
42
public function checkPostAuth (UserInterface $ user );
36
43
}
You can’t perform that action at this time.
0 commit comments