Better naming of Indetity Providers instead of Integrations to make way for more Indentity Provider like Google and custom SSO for the future

This commit is contained in:
johnnyq
2025-05-29 13:29:27 -04:00
parent a8328a3f56
commit 0b66c8e1be
3 changed files with 25 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
if (isset($_POST['edit_integrations_settings'])) {
if (isset($_POST['edit_identity_provider'])) {
validateCSRFToken($_POST['csrf_token']);
@@ -12,9 +12,9 @@ if (isset($_POST['edit_integrations_settings'])) {
mysqli_query($mysqli,"UPDATE settings SET config_azure_client_id = '$azure_client_id', config_azure_client_secret = '$azure_client_secret' WHERE company_id = 1");
// Logging
logAction("Settings", "Edit", "$session_name edited integrations settings");
logAction("Settings", "Edit", "$session_name edited identity provider settings");
$_SESSION['alert_message'] = "Integrations Settings updated";
$_SESSION['alert_message'] = "Identity Provider Settings updated";
header("Location: " . $_SERVER["HTTP_REFERER"]);