| | |
| | | <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> |
| | |
| | | } |
| | | |
| | | 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}$'); |