From c488036c39e599d7edd36831c6c623942f7bf557 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 25 Mar 2019 10:08:03 +0000 Subject: [PATCH] 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. --- security/user_checkers.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/security/user_checkers.rst b/security/user_checkers.rst index 60d06d23070..8aa5d80e819 100644 --- a/security/user_checkers.rst +++ b/security/user_checkers.rst @@ -38,11 +38,6 @@ are not met, an exception should be thrown which extends the // user is deleted, show a generic Account Not Found message. if ($user->isDeleted()) { throw new AccountDeletedException('...'); - - // or to customize the message shown - throw new CustomUserMessageAuthenticationException( - 'Your account was deleted. Sorry about that!' - ); } }