mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Storing the secret in plaintext so we can use it during cron eventually
This commit is contained in:
@@ -10,7 +10,7 @@ $config_base_url = $row['config_base_url'];
|
|||||||
// Mesh Central
|
// Mesh Central
|
||||||
$config_meshcentral_uri = $row['config_meshcentral_uri'];
|
$config_meshcentral_uri = $row['config_meshcentral_uri'];
|
||||||
$config_meshcentral_user = $row['config_meshcentral_user'];
|
$config_meshcentral_user = $row['config_meshcentral_user'];
|
||||||
$config_meshcentral_secret = decryptLoginEntry($row['config_meshcentral_secret']);
|
$config_meshcentral_secret = $row['config_meshcentral_secret'];
|
||||||
|
|
||||||
// Mail
|
// Mail
|
||||||
$config_smtp_host = $row['config_smtp_host'];
|
$config_smtp_host = $row['config_smtp_host'];
|
||||||
|
|||||||
2
post.php
2
post.php
@@ -717,7 +717,7 @@ if(isset($_POST['edit_general_settings'])){
|
|||||||
$config_base_url = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['config_base_url'])));
|
$config_base_url = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['config_base_url'])));
|
||||||
$mesh_uri = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['meshcentral_uri'])));
|
$mesh_uri = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['meshcentral_uri'])));
|
||||||
$mesh_user = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['meshcentral_user'])));
|
$mesh_user = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['meshcentral_user'])));
|
||||||
$mesh_secret = encryptLoginEntry((mysqli_real_escape_string($mysqli,$_POST['meshcentral_secret'])));
|
$mesh_secret = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['meshcentral_secret'])));
|
||||||
|
|
||||||
mysqli_query($mysqli,"UPDATE settings SET config_base_url = '$config_base_url', config_meshcentral_uri = '$mesh_uri', config_meshcentral_user = '$mesh_user', config_meshcentral_secret = '$mesh_secret' WHERE company_id = $session_company_id");
|
mysqli_query($mysqli,"UPDATE settings SET config_base_url = '$config_base_url', config_meshcentral_uri = '$mesh_uri', config_meshcentral_user = '$mesh_user', config_meshcentral_secret = '$mesh_secret' WHERE company_id = $session_company_id");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user