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

@Yash40 

 

The message is shown via  below code in Login widget.

			<div ng-if="c.message" class="alert alert-danger login-alert" role="alert">{{c.message}}</div>

 

If you want to change the color , just modify the css class.

However,  Login widget is readonly and you can't modify it directly.

You need to clone the whole login page and the login widget, then you can modify the login widget cloned to change the color.
And finally don't forget to use the new page as Login page in your portal.

 

 

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

Yash40
Tera Contributor

Hi @newhand ,

Thanks for your help.

I have cloned Login widget and Login page also updated CSS to change the color and added cloned widget to portal.

Yash40_0-1671696578731.png

 

Cloned widget is added to Page. 

Yash40_1-1671696698253.png

Login1 widget's CSS is updated to add text color.

Yash40_2-1671696809452.png

 

When I' checking on CSM portal, Text color is not changing ,Its still red.

Yash40_3-1671697045760.png

 

But when I'm clicking on Knowledge(Upper Right Side), Its also giving me Login Page and when I'm checking entering wrong user name or password there its showing text color as blue( As given in CSS), Please see below screenshot.

 

Yash40_4-1671697232443.png

In URL, I see its 'kb_home' page (After clicking on Knowledge) but why its not working when its /csm in url.

What could be the issue here? Could you please suggest?

@Yash40 

From the pic... it looks like a popup .

I think the popup is not the one you setted to the portal page , it's another widget.

Try to find it  ~

 

 

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