| | |
| | | <meta http-equiv="pragma" content="no-cache" /> |
| | | <meta http-equiv="cache-control" content="no-cache" /> |
| | | <meta http-equiv="expires" content="0" /> |
| | | <meta name="renderer" content="webkit|ie-comp|ie-stand" /> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
| | | <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8" /> |
| | | <script src="js/jquery.min.js"></script> |
| | | <script src="js/rsa.min.js"></script> |
| | | </head> |
| | |
| | | <div class="loginpwd" style='width: 400px; margin-right: 20px; margin-top: 30px; border-bottom: 1px solid #fff;'> |
| | | <span style="visibility: hidden;">请</span><label for="password">密码:</label> |
| | | <input class="required" placeholder="请输入密码" type="password" id="password" size="20" tabindex="2" |
| | | accesskey="p" autocomplete="off" name="password" value="Admin@123" /><span id="capslock-on" style="display: none;"> |
| | | accesskey="p" autocomplete="off" name="password" value="Admin@1234_lf" /><span id="capslock-on" style="display: none;"> |
| | | <i class="fa fa-exclamation-circle"></i> |
| | | <span>CAPSLOCK key is turned on!</span> |
| | | </span> |
| | |
| | | } |
| | | |
| | | alert("登录成功!"); |
| | | setLoginInfo(rs.result); |
| | | }, |
| | | error: function (e) { |
| | | isBusy = false; |
| | |
| | | } |
| | | } |
| | | |
| | | // 密码是否合规 |
| | | function setLoginInfo(rs) { |
| | | try { |
| | | ntst.setLogin(rs.createUser, rs.uname, rs.token); |
| | | } catch (e) { |
| | | // |
| | | } |
| | | } |
| | | |
| | | function isValid(pwd) { |
| | | if (pwd) { |
| | | var regex = new RegExp('^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$'); |