0 Replies Latest reply on Jul 22, 2014 9:25 PM by Luis Cardozo

    Custom error page for bad username or password (Security Domain)

    Luis Cardozo Newbie

      Hello,

       

      My web/enterprise (ear) application, running in JBoss AS 7.1.1.Final, is using JBoss Security Domain, with Database login module and auth-method FORM. It is working correctly, and if a username or password is incorrect, it redirects to my <form-error-page> 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 in the <form-login-page>.

       

      Is it possible? How?

       

      My system is in JSF 2 with PrimeFaces 4

       

      Thanks,

       

       

      Luis Cardozo

      Ciudad del Este, Paraguay