1
0
mirror of https://gitee.com/tawords/tawords-docs synced 2025-09-02 07:53:28 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
Files
tawords-docs/docs/6. 【清单 ToDo】/测试用/登录页 浏览器书签快速填充登录.md
2021-08-06 20:21:28 +08:00

42 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Url如下
```
javascript:void (function() {
function debugmode(){
document.getElementById('login_username').value = "111111";
document.getElementById('login_password').value = "111111";
document.getElementById('register_username').value = "666666";
document.getElementById('register_nickname').value = "六个六";
document.getElementById('register_password').value = "666666";
document.getElementById('register_password_confirm').value = "666666";
getCaptchaCode(true);
}
function getCaptchaCode(isFailRetry){
$.ajax({
type: "POST",
url: 'api/get-captcha-code-test-only.php',
dataType: "json",
success: function (res) {
login_captcha.value = register_captcha.value = findpwd_captcha.value = res;
login_captcha.focus(); register_captcha.focus(); findpwd_captcha.focus();
window.getSelection().empty();
},
error: function (res) {
if(isFailRetry) setTimeout(getCaptchaCode(false), 100);
else{
login_captcha.value = register_captcha.value = findpwd_captcha.value = "验证码开小差啦,点下验证码再试一次吧";
login_captcha.focus(); register_captcha.focus(); findpwd_captcha.focus();
}
}
});
}
var vercodeimg_onload = function() { setTimeout(debugmode(), 100) };
login_vercodeimg.onload = vercodeimg_onload;
register_vercodeimg.onload = vercodeimg_onload;
findpwd_vercodeimg.onload = vercodeimg_onload;
debugmode();
}(document));
```