login-scripts

login script

Usage no npm install needed!

<script type="module">
  import loginScripts from 'https://cdn.skypack.dev/login-scripts';
</script>

README

const LoginScripts = require("./login-scripts");

/**

  • @name 需要自动登录的用户信息
  • @param {String} username 登录人账号
  • @param {String} password 登录人的密码 */ const USER = { username: "3386", password: "3386", };

const HOST = http://baidu.com;

new LoginScripts({ USER, HOST, LOGIN_MAX_COUNT: 5, isCaptcha: { url: HOST + "/sso/getCaptcha", }, LOGIN_CONFIG: { url: HOST + "/sso/doLogin2", }, });