更新于 07-06 01:22

This commit is contained in:
root
2021-07-06 01:22:11 -04:00
parent 4c40e636e2
commit 9a490e5e9c
7 changed files with 220 additions and 384 deletions

View File

@@ -1,30 +1,5 @@
var qrcode, userCookie, timeId;
$.ajaxSetup({
cache: false
});
$("#login").click(function () {
$user = $(".username").val();
$password = $(".password").val();
if (!$user || !$password) return;
$.post('./auth', {
username: $user,
password: $password
}, function (data) {
if (data.err == 0) {
window.location.href = "./usrconfig";
} else {
Swal.fire({
text: data.msg,
icon: 'error'
})
}
});
return false;
});
$(document).ready(function () {
qrcode = new QRCode(document.getElementById('qrcode'), {
text: 'sample',