8000 bug #8743 Update Custom UsernamePasswordToken Authenticator (mtazi9) · symfony/symfony-docs@9be5f42 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9be5f42

Browse files
committed
bug #8743 Update Custom UsernamePasswordToken Authenticator (mtazi9)
This PR was merged into the 3.3 branch. Discussion ---------- 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. Commits ------- 9cce028 Update Custom UsernamePasswordToken Authenticator
2 parents 9b1558c + 9cce028 commit 9be5f42

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