Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to modify 'User name or password invalid' message on service portal?

Yash40
Tera Contributor

I want to modify the message which occurs when we entere wrong user name or password.

 

Yash40_0-1671604597713.png

 

I have updated message in 'login_invalid' under System UI>Messages.

 

Yash40_1-1671604767037.png

 

When I'm checking it on instance, I can see updated message reflecting when I'm entering wrong password.

 

Yash40_2-1671604816172.png

 

But on portal I'm still getting old message and not able to see updated message.

 

Yash40_3-1671605122578.png

 

I'm performing this task on my PDI and I'm not using any custom widget, still its not showing updated message.
If its not coming from 'login_invalid' on portal then where should I update so that I can get modified message on portal?
Please help me to resolve this issue.

1 ACCEPTED SOLUTION

HI@Yash40 

The message used by portal's key is  "user name or password invalid" . Not "login_invalid".

Of course the message doesn't exists. you need to add a new message with key "user name or password invalid" .

 

I had a try and successed.

 

Please mark my answer as correct and helpful based on Impact.

View solution in original post

7 REPLIES 7

Shalini32
Tera Expert

Hi,

Same UI message is used for Portal login. I would suggest, clear you cache and reload it.

Even if it doesn't work, Debug script include - "PortletLogin".

 

Thanks,

Shalini

 

Please mark it helpful if it worked for you

 

Yash40
Tera Contributor

Thank you for replying Shalini, I cleared cache still also checked "PortletLogin" script include.

No changes made in script include, Even I tried resetting my instance and updated message only and noting else still not working.

 

HI@Yash40 

The message used by portal's key is  "user name or password invalid" . Not "login_invalid".

Of course the message doesn't exists. you need to add a new message with key "user name or password invalid" .

 

I had a try and successed.

 

Please mark my answer as correct and helpful based on Impact.

Yash40
Tera Contributor

Hi @newhand ,

Thank you for your reply.
Created new key with 'User name or password invalid' is working now and given message is visible on portal.

Addition to this, I also want to change the text color of that message? Is it possible? If Yes, How can I do that? because we are not giving any reference of this key to Login widget so how can we do that?