Skip to content

Commit c488036

Browse files
authored
Remove CustomUserMessageAuthenticationException
Remove the use of `CustomUserMessageAuthenticationException`, as this is not compatible with the `@throws` tag of the interface. Since `AccountDeletedException` is implemented by the user here, they could let it take a custom message.
1 parent 2f97fff commit c488036

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

security/user_checkers.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ are not met, an exception should be thrown which extends the
3838
// user is deleted, show a generic Account Not Found message.
3939
if ($user->isDeleted()) {
4040
throw new AccountDeletedException('...');
41-
42-
// or to customize the message shown
43-
throw new CustomUserMessageAuthenticationException(
44-
'Your account was deleted. Sorry about that!'
45-
);
4641
}
4742
}
4843

0 commit comments

Comments
 (0)