修改
This commit is contained in:
@@ -95,7 +95,7 @@ public class EMAccountController extends BaseController {
|
||||
return modelMap;
|
||||
}
|
||||
|
||||
account.setPassword(Md5Utils.hash("c1234567"));
|
||||
account.setPassword(Md5Utils.hash("Yxt@67508182"));
|
||||
accountService.add4m(account);
|
||||
|
||||
modelMap.put(RESULT, true);
|
||||
@@ -103,6 +103,11 @@ public class EMAccountController extends BaseController {
|
||||
return modelMap;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
String pa = Md5Utils.hash("Yxt@67508182");
|
||||
System.out.println(pa);
|
||||
}
|
||||
|
||||
@RequestMapping("/update")
|
||||
public @ResponseBody ModelMap update(HttpServletRequest request, EAccount account) {
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ public class PAccountController extends BaseController {
|
||||
}
|
||||
|
||||
account.setId(null);
|
||||
account.setPassword(Md5Utils.hash("k1234567"));
|
||||
account.setPassword(Md5Utils.hash("Yxt@67508182"));
|
||||
accountService.add(account);
|
||||
|
||||
modelMap.put(RESULT, true);
|
||||
|
||||
@@ -15,6 +15,7 @@ layui.use([ 'carousel', 'form' ], function() {
|
||||
var url = basePath + "/captcha/captchaImage?type=" + type + "×tamp=" + timestamp;
|
||||
console.log("点击验证码啦啦啦啦啦")
|
||||
$(".imgcode").attr("src", url);
|
||||
$(".imgcode").data("ts", timestamp); // 👈 存一下
|
||||
}
|
||||
|
||||
// 页面加载时刷新验证码
|
||||
@@ -28,6 +29,7 @@ layui.use([ 'carousel', 'form' ], function() {
|
||||
var type = system_config?.captchaType || "math";
|
||||
var url = basePath + "/captcha/captchaImage?type=" + type + "×tamp=" + timestamp;
|
||||
$(this).attr("src", url);
|
||||
$(".imgcode").data("ts", timestamp); // 👈 存一下
|
||||
});
|
||||
// 监听提交
|
||||
form.on('submit(login_)', function(data) {
|
||||
@@ -57,7 +59,7 @@ layui.use([ 'carousel', 'form' ], function() {
|
||||
"telephone":telephone,
|
||||
"password":MD5(password),
|
||||
"captcha":captcha,
|
||||
"timestamp":timestamp
|
||||
"timestamp":$(".imgcode").data("ts")
|
||||
},
|
||||
type : 'post',
|
||||
dataType : 'json',
|
||||
|
||||
Reference in New Issue
Block a user