fix bug: cannot login when 2FA enabled

这个提交包含在:
WaitSpring 2022-04-28 11:26:52 +08:00
父节点 76c0cbf896
当前提交 c93247652f
共有 2 个文件被更改,包括 2782 次插入17 次删除

2771
package-lock.json 自动生成的

文件差异内容过多而无法显示 加载差异

查看文件

@ -1,15 +1,15 @@
/**
* JavaScript file for performing some interactive and client-side validation of
* the password fields on the registration form to avoid some user frustration,
* especially on mobile devices.
*
* @file
* @author by Qiuwen Contributors
*/
// Mandatory check
(function () {
var a = document.getElementById("wpLoginAttempt") || document.getElementById("wpCreateaccount");
a && (a.disabled = !0, document.getElementById("mw-input-wpTermsOfService").addEventListener("change", function () {
a.disabled = !0 === document.getElementById("mw-input-wpTermsOfService").checked ? !1 : !0;
}));
/**
* JavaScript file for performing some interactive and client-side validation of
* the password fields on the registration form to avoid some user frustration,
* especially on mobile devices.
*
* @file
* @author by Qiuwen Contributors
*/
// Mandatory check
(function () {
var a = document.getElementById("wpLoginAttempt") && !document.getElementById("wpOATHToken") || document.getElementById("wpCreateaccount");
a && (a.disabled = !0, document.getElementById("mw-input-wpTermsOfService").addEventListener("change", function () {
a.disabled = !0 === document.getElementById("mw-input-wpTermsOfService").checked ? !1 : !0;
}));
})();