8000 Update Custom UsernamePasswordToken Authenticator · symfony/symfony-docs@9cce028 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9cce028

Browse files
authored
Update Custom UsernamePasswordToken Authenticator
Hello, the "CustomUserMessageAuthenticationException" require a third parameter called $messageData ($messageData Data to be passed into the translator) that must be an array. Thanks for reviewing this modification.
1 parent b2f238a commit 9cce028

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/custom_password_authenticator.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ the user::
6161
// (so don't put any un-trusted messages / error strings here)
6262
throw new CustomUserMessageAuthenticationException(
6363
'You can only log in between 2 and 4!',
64+
array(), // Message Data
6465
412 // HTTP 412 Precondition Failed
6566
);
6667
}

0 commit comments

Comments
 (0)
0