From b5560a2a37bb5a406488d50170abc5309c2d4f5a Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期六, 31 十二月 2022 22:13:33 +0800 Subject: [PATCH] 1 --- DataLoader/htmls/login.html | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/DataLoader/htmls/login.html b/DataLoader/htmls/login.html index 2e3009b..14c35d9 100644 --- a/DataLoader/htmls/login.html +++ b/DataLoader/htmls/login.html @@ -6,6 +6,9 @@ <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> @@ -103,6 +106,7 @@ } alert("登录成功!"); + setLoginInfo(rs.result); }, error: function (e) { isBusy = false; @@ -137,7 +141,14 @@ } } - // 密码是否合规 + 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}$'); -- Gitblit v1.9.3