Hi i needed to add a new exception in Spring security login form, everything work perfectly except that i want to have my own error message (until now it display the \"wrong
In your messages.properties (or whatever you named it), add a line like:
AbstractUserDetailsAuthenticationProvider.badCredentials=The credentials you supplied are invalid.
You don't need a CustomAuthenticationException.