Chat's updates for security, db and workflow
Security and workflow regressions / regression (push) Has been cancelled

This commit is contained in:
2026-10-20 06:45:30 -04:00
parent 02223083f6
commit 1e63076123
116 changed files with 3252 additions and 2932 deletions
+10 -8
View File
@@ -26,7 +26,7 @@ $(document).ready(function () {
// Save Button
// -----------
$(".btnSave").on("click", function (e) {
$(".btnSave").on("click", async function (e) {
e.preventDefault();
@@ -38,7 +38,7 @@ $(document).ready(function () {
// Cancel Button.
// --------------
$(".btnCancel").on("click", function () {
$(".btnCancel").on("click", async function () {
$sessionStorage.action = $sessionStorage.editUser || "";
@@ -52,9 +52,9 @@ $(document).ready(function () {
// Delete Button
// -------------
$(".btnDelete").on("click", function () {
$(".btnDelete").on("click", async function () {
if (formPost({action: "Users.userActive", user_serial: $sessionStorage.user_serial}) === true) {
if (await formPost({action: "Users.userActive", user_serial: $sessionStorage.user_serial}) === true) {
$("#continue-dialog").find(".modal-title").html("Cannot Delete User").end()
.find(".modal-body").html("This User is Active and cannot be deleted.").end()
@@ -71,7 +71,7 @@ $(document).ready(function () {
});
$("body").on("click", ".confirm-delete-user .btnConfirmDialogConfirm", function () {
$("body").on("click", ".confirm-delete-user .btnConfirmDialogConfirm", async function () {
$.post("./", {action: "Users.deleteUser", user_serial: $sessionStorage.user_serial})
@@ -92,7 +92,8 @@ $(document).ready(function () {
// Validate Inputs
// ---------------
$("#editUser").submit(function (e) {
$("#editUser").submit(async function (e) {
e.preventDefault();
var user_name = $("#user_name"),
user_email = $("#user_email"),
@@ -101,7 +102,7 @@ $(document).ready(function () {
clearInputErrors();
user_name.val(titleCase(user_name.val()));
user_name.val(trimString(user_name.val()));
user_email.val(trimString(user_email.val()));
if (isBlank(user_name)) {
@@ -115,10 +116,11 @@ $(document).ready(function () {
}
if (isBlank(user_first_name)) {
createInputError(user_first_name, "Client Name is required");
createInputError(user_first_name, "First name is required");
return false;
}
if (isBlank($('#user_last_name'))) { createInputError($('#user_last_name'),'Last name is required');return false; }
if ($("option:selected", user_role).val() === "") {
createInputError(user_role, "Role is required");
return false;