1
0
mirror of https://gitee.com/bookshelfplus/bookshelfplus synced 2025-09-13 04:01:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

密码加密放在后台进行

This commit is contained in:
2022-04-01 18:03:16 +08:00
parent d3c9ba10c4
commit b27b709cbf
4 changed files with 100 additions and 11 deletions

View File

@@ -48,11 +48,9 @@
var username = $("#username").val();
var password = $("#password").val();
// var encryptpwd = hex_sha1(password);
var encryptpwd = hex_md5(password);
// var encryptpwd = hex_md5(password);
console.log(password, encryptpwd);
postRequest("/user/login", { username: username, encryptpwd: encryptpwd })
postRequest("/user/login", { username: username, password: password })
.then(function (response) {
var axiosData = response.data;
var status = axiosData.status;