File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -32,22 +32,6 @@ public function checkPreAuth(UserInterface $user)
32
32
return ;
33
33
}
34
34
35
- if (!$ user ->isCredentialsNonExpired ()) {
36
- $ ex = new CredentialsExpiredException ('User credentials have expired. ' );
37
- $ ex ->setUser ($ user );
38
- throw $ ex ;
39
- }
40
- }
41
-
42
- /**
43
- * {@inheritdoc}
44
- */
45
- public function checkPostAuth (UserInterface $ user )
46
- {
47
- if (!$ user instanceof AdvancedUserInterface) {
48
- return ;
49
- }
50
-
51
35
if (!$ user ->isAccountNonLocked ()) {
52
36
$ ex = new LockedException ('User account is locked. ' );
53
37
$ ex ->setUser ($ user );
@@ -66,4 +50,20 @@ public function checkPostAuth(UserInterface $user)
66
50
throw $ ex ;
67
51
}
68
52
}
53
+
54
+ /**
55
+ * {@inheritdoc}
56
+ */
57
+ public function checkPostAuth (UserInterface $ user )
58
+ {
59
+ if (!$ user instanceof AdvancedUserInterface) {
60
+ return ;
61
+ }
62
+
63
+ if (!$ user ->isCredentialsNonExpired ()) {
64
+ $ ex = new CredentialsExpiredException ('User credentials have expired. ' );
65
+ $ ex ->setUser ($ user );
66
+ throw $ ex ;
67
+ }
68
+ }
69
69
}
You can’t perform that action at this time.
0 commit comments