By: Josh Newlin user 22 Jul 2018 at 4:06 p.m. CDT

5 Responses
Josh Newlin gravatar
Hi, The stock Gluu login page has an error message when the username or password is incorrect. Since we use a custom login page, is there information passed by the server that indicates this? Currently, I don't see a flag that says that on the stock webpage. The alert is in an unordered list like so: `<ul style="color:red;"><li> Incorrect username or password. </li></ul>`. How would I get this information if I'm using a custom webpage? It doesn't mention this in the docs about [customizing public pages](https://gluu.org/docs/ce/2.4.4/operation/design/). I appreciate this information! Thanks! Josh N.

By Michael Schwartz Account Admin 22 Jul 2018 at 4:15 p.m. CDT

Michael Schwartz gravatar
Are you using the default password validation mechanism: `auth_ldap_server` or a custom interception script? If the latter, you can set custom messages in the state, which can be picked up in the .xhtml documents. Maybe Sahil can help you figure this out on this.

By Sahil Arora user 23 Jul 2018 at 7:31 p.m. CDT

Sahil Arora gravatar
Hi Josh, You will have to add the error messages in the custom authentication script which will be using your custom login page. Here is the example - https://github.com/GluuFederation/oxAuth/blob/version_3.1.3/Server/integrations/otp/OtpExternalAuthenticator.py#L390

By Sahil Arora user 30 Jul 2018 at 7:22 p.m. CDT

Sahil Arora gravatar
Josh, Please let me know should you need further assistance on this?

By Josh Newlin user 31 Jul 2018 at 9:06 a.m. CDT

Josh Newlin gravatar
No, thanks for the replies! I've since figured it out. I needed to add `<h:messages>` to receive incorrect password info from the gluu server on the custom login page. Thanks. By the way, I like the new text boxes on this support page!

By William Lowe user 31 Jul 2018 at 10:50 a.m. CDT

William Lowe gravatar
Great to hear! Thanks for the feedback :)