javascript - 更改错误文本 "Incorrect user ID or password."

标签 javascript office365 adfs

通过 AD FS 登录页面登录 Office 365 时,如果输入不正确的密码,我会收到此错误文本:用户 ID 或密码不正确。输入正确的用户 ID 和密码,然后重试。 Example Image

我想改变它。我已经能够通过编辑 onload.js 来更改 userNameFormatErrorpasswordEmpty 消息,如下所述: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/

相关文章:

javascript - 富文本内容破坏 TinyMCE

curl - 使用 cURL 对 SharePoint Online 进行身份验证(使用 ADFS 2.1 作为 IP-STS)

asp.net-mvc - MVC5 OWIN ws-federation AuthenticationManager.GetExternalLoginInfoAsync() 返回 null

LDAP 与 ADFS 单点登录

javascript - 错误 var 未定义 - 但在使用之前已定义 -

javascript - 需要处理 Angular UI 路由器中的动态参数,并相应地加载模板

javascript - Google Contact API 错误 : Request via script load timed out. 可能原因:Feed URL 不正确;提要需要身份验证

excel - Office 2016 -> 2013 "compile error, can' t 查找项目或库”

excel - 在 Visual Basic 6.0 中使用 Microsoft (Office) 365 工具

apache - 如何为 SAML2 生成有效的 SP XML 文件?