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:
parent
9ae4a5053a
commit
50f22ccf25
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user