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!' - ); } }