通过 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
关于javascript - 更改错误文本 "Incorrect user ID or password.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36899601/