Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 更改错误文本“;用户ID或密码不正确。”;_Javascript_Office365_Adfs - Fatal编程技术网

Javascript 更改错误文本“;用户ID或密码不正确。”;

Javascript 更改错误文本“;用户ID或密码不正确。”;,javascript,office365,adfs,Javascript,Office365,Adfs,当通过AD FS登录页面登录Office 365时,我在输入错误的密码时收到以下错误文本:错误的用户ID或密码。请键入正确的用户ID和密码,然后重试。 我想换一下。我已经能够通过编辑onload.js来更改userNameFormatError和passwordEmpty消息,如下所述:但不能更改错误的密码文本。我已经使用FireFox和Chrome的开发工具来监控它是如何改变的,但毫无用处 var labelAuthfailed = document.getElementById("erro

当通过AD FS登录页面登录Office 365时,我在输入错误的密码时收到以下错误文本:错误的用户ID或密码。请键入正确的用户ID和密码,然后重试。

我想换一下。我已经能够通过编辑onload.js来更改userNameFormatErrorpasswordEmpty消息,如下所述:但不能更改错误的密码文本。我已经使用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!" ;
}