1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 11:22:42 +01:00

Allow encoded settings using env_encode parameter

This commit is contained in:
FreeScout 2020-12-03 02:24:43 -08:00
parent 9ae4a5053a
commit 50f22ccf25

View File

@ -276,6 +276,10 @@ class SettingsController extends Controller
if (!empty($settings_params[$option_name]) && !empty($settings_params[$option_name]['env'])) {
$env_value = $request->settings[$option_name] ?? '';
if (!empty($settings_params[$option_name]['env_encode'])) {
$env_value = base64_encode($env_value);
}
\Helper::setEnvFileVar($settings_params[$option_name]['env'], $env_value);
config($option_name, $env_value);