更新于 07-06 01:42

This commit is contained in:
root
2021-07-06 01:42:30 -04:00
parent c592ea1794
commit 6d4beb423e
2 changed files with 30 additions and 26 deletions

View File

@@ -1,24 +0,0 @@
$.ajaxSetup({
cache: false
});
$("#login").click(function () {
$user = $(".username").val();
$password = $(".password").val();
if (!$user || !$password) return;
$.post('./login', {
username: $user,
password: $password
}, function (data) {
if (data.err == 0) {
window.location.href = "./usrconfig";
} else {
Swal.fire({
text: data.msg,
icon: 'error'
})
}
});
return false;
});