From 9cce0289832dcf47aafdeb4790b7afdc62599bd0 Mon Sep 17 00:00:00 2001 From: Mehdi Tazi Date: Thu, 23 Nov 2017 22:04:06 +0000 Subject: [PATCH] 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. --- security/custom_password_authenticator.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/security/custom_password_authenticator.rst b/security/custom_password_authenticator.rst index b2d88b81008..c9eee1eb724 100644 --- a/security/custom_password_authenticator.rst +++ b/security/custom_password_authenticator.rst @@ -61,6 +61,7 @@ the user:: // (so don't put any un-trusted messages / error strings here) throw new CustomUserMessageAuthenticationException( 'You can only log in between 2 and 4!', + array(), // Message Data 412 // HTTP 412 Precondition Failed ); }