ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR-test/ds/js
/
home
mhhtmff
app
NH-HR-test
ds
js
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
plugins
-
chmod
Open
Rename
Delete
scripts
-
chmod
Open
Rename
Delete
.DS_Store
6 MB
chmod
View
DL
Edit
Rename
Delete
account.js
477 B
chmod
View
DL
Edit
Rename
Delete
app.js
845 B
chmod
View
DL
Edit
Rename
Delete
app.js.map
1.98 MB
chmod
View
DL
Edit
Rename
Delete
app.min.js
845 B
chmod
View
DL
Edit
Rename
Delete
attendance.js
14.34 MB
chmod
View
DL
Edit
Rename
Delete
bacheca.js
7.01 MB
chmod
View
DL
Edit
Rename
Delete
dashboard.js
3.74 MB
chmod
View
DL
Edit
Rename
Delete
exports.js
2.47 MB
chmod
View
DL
Edit
Rename
Delete
globals.js
1020 B
chmod
View
DL
Edit
Rename
Delete
login.js
8.03 MB
chmod
View
DL
Edit
Rename
Delete
permissions.js
21.65 MB
chmod
View
DL
Edit
Rename
Delete
settings.js
34.53 MB
chmod
View
DL
Edit
Rename
Delete
situation.js
23.5 MB
chmod
View
DL
Edit
Rename
Delete
stamps.js
19.14 MB
chmod
View
DL
Edit
Rename
Delete
transfers.js
17.1 MB
chmod
View
DL
Edit
Rename
Delete
users.js
12.41 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR-test/ds/js/login.js
function openForgotSection() { document.getElementById("login_container").style.display = 'none'; document.getElementById("forgot_password_content").style.display = 'block'; } function sendForgotVerificationCode() { var email = document.querySelector('#forgot_email').value; $.ajax({ type: "POST", url: "php/login/check_email.php", data: { email : email }, success: function (res) { if (res == "ok") { $.ajax({ type: "POST", url: "php/login/send_forgot_verification_code.php", data: { email : email }, success: function (res) { if (res == "ok") { document.querySelector('#forgot_password_content').style.display="none"; document.querySelector('#otp_verification_content').style.display="block"; } else { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "Codice non inviato" }); } } }); } else { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "Email non trovata" }); } } }); } function checkForgotVerificationCode() { var email = document.querySelector('#forgot_email').value; var otp_num_1 = document.querySelector('#otp_num_1').value; var otp_num_2 = document.querySelector('#otp_num_2').value; var otp_num_3 = document.querySelector('#otp_num_3').value; var otp_num_4 = document.querySelector('#otp_num_4').value; $.ajax({ type: "POST", url: "php/login/check_forgot_verification_code.php", data: { otp_num_1 : otp_num_1, otp_num_2 : otp_num_2, otp_num_3 : otp_num_3, otp_num_4 : otp_num_4, email : email}, success: function (res) { if (res == "ok") { document.querySelector('#otp_verification_content').style.display="none"; openForgotPasswordReset(); } else { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "Codice non valido" }); } } }); } function openForgotPasswordReset() { var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { document.querySelector("#password_reset_content").innerHTML = this.responseText; document.querySelector("#password_reset_container").style.display="block"; } }; xmlhttp.open("GET", "public/login/password_reset_forgot_content.php"); xmlhttp.send(); } function changeForgotPassword() { var email = document.querySelector('#forgot_email').value; var new_password = document.querySelector("#new_pass").value; var repeat_new_password = document.querySelector("#repeat_new_pass").value; if(new_password != repeat_new_password) { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "Le password non sono uguali" }); exit; } if(new_password.length < 8) { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "La password deve essere di almeno 8 caratteri" }); exit; } if(/\d/.test(new_password) == false) { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "La password deve contenere almeno un numero" }); exit; } var special_char = /[ `!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/; if(special_char.test(new_password) == false) { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "La password deve contenere almeno un carattere speciale" }); exit; } $.ajax({ type: "POST", url: "php/login/change_forgot_password.php", data: { new_password : new_password, email : email}, success: function (res) { if (res == "ok") { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "success", title: "Password modificata" }); location.reload(); } else { const Toast = Swal.mixin({ toast: true, position: "bottom", showConfirmButton: false, timer: 3000, timerProgressBar: true, didOpen: (toast) => { toast.onmouseenter = Swal.stopTimer; toast.onmouseleave = Swal.resumeTimer; } }); Toast.fire({ icon: "error", title: "Password non cambiata" }); } } }); }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply