Skip to content

Commit 4d3eb13

Browse files
committed
Improve explanation
1 parent 35d9c6a commit 4d3eb13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security/user_checkers.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ or :class:`Symfony\\Component\\Security\\Core\\Exception\\AuthenticationExceptio
3737
}
3838

3939
if ($user->isDeleted()) {
40-
throw new CustomUserMessageAccountStatusException('The user account was not found.');
40+
// the message passed to this exception is meant to be displayed to the user
41+
throw new CustomUserMessageAccountStatusException('Your user account no longer exists.');
4142
}
4243
}
4344

0 commit comments

Comments
 (0)