mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-13 04:01:40 +08:00
密码加密放在后台进行
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user