Skip to content
Snippets Groups Projects
Commit 3f6affd6 authored by Prasad's avatar Prasad
Browse files

Fixes #861: Force protection on first setup

parent 713d19a6
No related branches found
No related tags found
1 merge request!1update
......@@ -28,7 +28,11 @@ class Settings_Vtiger_Systems_Model extends Vtiger_Base_Model{
$params = array();
$server_password = $this->get('server_password');
if ($id && !Vtiger_Functions::isProtectedText($server_password)) {
if ($id) {
if (!Vtiger_Functions::isProtectedText($server_password)) {
$server_password = Vtiger_Functions::toProtectedText($server_password);
}
} else {
$server_password = Vtiger_Functions::toProtectedText($server_password);
}
......@@ -67,4 +71,4 @@ class Settings_Vtiger_Systems_Model extends Vtiger_Base_Model{
return $instance;
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment