$(document).ready(function () {
$("#sign_in").validate({
rules: {
username: {
required: true
},
pwd: {
required: true,
minlength: 6
}
},
messages: {
username: "Hãy nhập tài khoản",
pwd: "Mật khẩu phải lớn hơn 6 kí tự"
},
submitHandler: function (_0xeb80x2) {
$("button.btn-danger").attr("disabled", true);
$.post("/assets/ajax/client/login.php", $("#sign_in").serialize(), function (_0xeb80x3) {
alert(_0xeb80x3.msg);
$("button.btn-danger").attr("disabled", false);
if (_0xeb80x3.status == 0) {
window.location = "/"
}
}, "json");
return false
}
});
$("#forgot").validate({
rules: {
forgotusername: {
required: true,
minlength: 6
},
email: {
required: true,
minlength: 6
}
},
messages: {
forgotusername: "Bạn Chưa Nhập Tài Khoản",
email: "Hãy Nhập Email"
},
submitHandler: function (_0xeb80x2) {
$("btn.btn-info").attr("disabled", true);
$.post("/assets/ajax/client/quenmk.php", $("#forgot").serialize(), function (_0xeb80x3) {
alert(_0xeb80x3.msg);
$("button.btn-success").attr("disabled", false);
if (_0xeb80x3.status == 0) {
window.location = "/"
}
}, "json");
return false
}
})
});
var _0x7580 = ["hostname", "location", "doicardnhanh.com", "Edit Code by ĐẶNG QUỐC BẮC", "href", "https://www.facebook.com/Bac.CSM