Custom error page for bad username or password in Security Domain JBoss AS 7.1.1

202 views Asked by At

I am working on a web/enterprise (ear) Java application, done in JSF 2 with PrimeFaces 4, running on JBoss AS 7.1.1.Final, and using JBoss Security Domain, with DatabaseServerLoginModule and auth-method FORM.

It is working correctly, and if a username or password is incorrect, it redirects to the page configured by form-error-page in web.xml, as expected (where it says that the username or password was incorrect).

My boss is asking for a more specific message, like "invalid username" or "invalid password", according to which data was wrong. This could be in the form-error-page, or better, as a message near the login form fields.

Is it possible? How?

Thanks

0

There are 0 answers