mirror of https://github.com/itflow-org/itflow
Storing the secret in plaintext so we can use it during cron eventually
This commit is contained in:
parent
534a192981
commit
8fcb854e91
|
|
@ -10,7 +10,7 @@ $config_base_url = $row['config_base_url'];
|
|||
// Mesh Central
|
||||
$config_meshcentral_uri = $row['config_meshcentral_uri'];
|
||||
$config_meshcentral_user = $row['config_meshcentral_user'];
|
||||
$config_meshcentral_secret = decryptLoginEntry($row['config_meshcentral_secret']);
|
||||
$config_meshcentral_secret = $row['config_meshcentral_secret'];
|
||||
|
||||
// Mail
|
||||
$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'])));
|
||||
$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_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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue