更改错误文本 "Incorrect user ID or password."
Change ErrorText "Incorrect user ID or password."
通过 AD FS 登录页面登录 Office 365 时,输入错误密码时出现此错误文本:用户 ID 或密码不正确。输入正确的用户 ID 和密码,然后重试。
Example Image
我想改变它。我已经能够通过编辑 onload.js 来更改 userNameFormatError 和 passwordEmpty 消息:https://technet.microsoft.com/en-us/library/dn636121.aspx 但不是不正确的密码文本。我已经使用 FireFox 和 Chrome 的开发工具来监视它如何更改无济于事。
var labelAuthfailed = document.getElementById("errorText") ;
if ( labelAuthfailed && labelAuthfailed.innerHTML == "Incorrect user ID or password. Type the correct user ID and password, and try again.") {
labelAuthfailed.innerHTML = "Booh! Fat fingers!" ;
}
https://social.technet.microsoft.com/Forums/windowsserver/en-US/dd86453b-eaf4-49d3-9c8c-ba74db2ddff5
通过 AD FS 登录页面登录 Office 365 时,输入错误密码时出现此错误文本:用户 ID 或密码不正确。输入正确的用户 ID 和密码,然后重试。 Example Image
我想改变它。我已经能够通过编辑 onload.js 来更改 userNameFormatError 和 passwordEmpty 消息:https://technet.microsoft.com/en-us/library/dn636121.aspx 但不是不正确的密码文本。我已经使用 FireFox 和 Chrome 的开发工具来监视它如何更改无济于事。
var labelAuthfailed = document.getElementById("errorText") ;
if ( labelAuthfailed && labelAuthfailed.innerHTML == "Incorrect user ID or password. Type the correct user ID and password, and try again.") {
labelAuthfailed.innerHTML = "Booh! Fat fingers!" ;
}
https://social.technet.microsoft.com/Forums/windowsserver/en-US/dd86453b-eaf4-49d3-9c8c-ba74db2ddff5