You are viewing limited content. For full access, please sign in.

Question

Question

Change Account Locked Message on LFDSSTS Login Page

asked on February 11, 2021

Hello,

We recently built a file-sharing integration for external users to log into WebLink and access shared documents using LFDS accounts. We went this route because we wanted to give the users the ability to reset their passwords via email to minimize the support burden on our team.

Now, we've had some users who have locked themselves out by entering the wrong password too many times, and then we get phone calls because the message on the page says to contact the system administrator.

If possible, I'd like to change the instructions in this message. I can see error message element and the showError() function in the Login.cshtml file so I just need to know if there's a way to change the message content slightly.

 

0 0

Answer

SELECTED ANSWER
replied on February 11, 2021

I found my own workaround. For now I just modified the showError function to check for the "Your account is locked message" and return a different message instead.

function showError(message)
{
	if (message.includes("Your account is locked.")){
		message = "Your account has been locked due to too many failed login attempts.<br><br>Please wait 45 minutes before trying again.<br><br>If you are still unable to login, use the Forgot Password link to reset your password."
	}
	
	document.getElementById("errorMessage").style.visibility = "visible";
	document.getElementById("errorMessage").innerHTML = message;
}

In the future, it would be really cool to be able to customize the various error messages using the STS configuration page.

2 0
replied on February 11, 2021

Hi Jason, I can file a feature request for this.

2 0
replied on February 11, 2021 Show version history

Thanks! That would be much appreciated.

Some other options similar to the WebLink Designer would be helpful too, like being able to customize the logo/color at the top of the STS pages.

1 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.