Own.Web/js/Sys/Login.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//从cookie中获取数据
$("#LoginUid").val(getCookie("IDMCLoginUid"));
$("#password").val(getCookie("IDMCPwd"));
$("#online").attr('checked', true);
//获取路径查看是否是因为session失效而跳回登录页面
function login() {
var LoginUid = $("#LoginUid").val();
var password = $("#password").val();
var checked = $("#online").is(':checked');
$.post("/Account/Login_Submit", "LoginUid=" + encodeURIComponent(LoginUid) + "&password=" + encodeURIComponent(password),
function (result) {
if (!result.success) {
FailedMessage(GetMsgByKey(result.message));
if (result.status == "200") {
$("#LoginUid").focus();
$("#LoginUid").addClass("error");
} else if (result.status == "201") {
$("#password").focus();
$("#password").addClass("error");
}
}
else {
if (checked) {
setCookie("IDMCLoginUid", LoginUid, "d7");
setCookie("IDMCPwd", password, "d7");
} else {
delCookie("IDMCLoginUid");
delCookie("IDMCPwd");
}
var req = GetRequest();
if (req["RType"] == "LRSTPWD") {
//直接进入重置页面
var ReturnUrl = req["ReturnUrl"] != null ? req["ReturnUrl"] : "";
//ReturnUrl = decodeURIComponent(ReturnUrl);
window.location.href = ReturnUrl;
}
else {
window.location.href = "/Account/Index";
}
}
}
);
}
function inputUid() {
$("#LoginUid").removeClass("error");
}
function inputPW() {
$("#password").removeClass("error");
}
后面还有 37 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
