Customize Error Message during Pega basic login (non-SSO)
Currently when I login to pega using my user ID and password, Pega will throw the error message "The information you entered was not recognized." if I type incorrect user name or password.
I need to customize this error message as per requirement. As per my research, there is code in web-login.html which calls an activity Code-Security.Login which seems to handle the authentication and throw the error message.
I haven't attempted this personally, but have a couple of thoughts on how you might be able to dig a little deeper.
When a browser hits the login screen for a Pega environment, it creates a requestor that you can attach a tracer session to. You could try capturing a trace of a failed login attempt and seeing which activities (and other rules) are run.
Additionally, you could try running a rule content search (you'll have to be on an indexed system) to see if you can find the text for the message that is displayed on the screen.
Hope this helps!
Posted: 3 years ago
Posted: 11 Jul 2018 10:11 EDT
Karthikeyan Ramalingam (KarthikeyanR2740)
Principal IT Engineer Applications
Thanks for your reply. I tried both the options already with no luck
1. I am able to remote trace the session with all events and rulesets checked. However the Code-Security.Login activity was not captured in the tracer. So, I could not find where exactly the error is coming from
2. I tried content search for the error message. I also checked in DSS, Field values. I could not figure out any rule reference where it might have been triggered. I changed some java scripts which contained this exact error message with custom error message (Ex., py-login-offline-browser-base). But portal is not picking up. So, it is code somewhere else.