mirror of https://github.com/itflow-org/itflow
22 lines
707 B
PHP
22 lines
707 B
PHP
<?php
|
|
|
|
defined('FROM_POST_HANDLER') || die("Direct file access is not allowed");
|
|
|
|
if (isset($_POST['edit_integrations_settings'])) {
|
|
|
|
validateCSRFToken($_POST['csrf_token']);
|
|
|
|
$azure_client_id = sanitizeInput($_POST['azure_client_id']);
|
|
$azure_client_secret = sanitizeInput($_POST['azure_client_secret']);
|
|
|
|
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");
|
|
|
|
$_SESSION['alert_message'] = "Integrations Settings updated";
|
|
|
|
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
|
|
|
}
|