diff --git a/application/Espo/Services/Settings.php b/application/Espo/Services/Settings.php index d54d35304f..27af265a50 100644 --- a/application/Espo/Services/Settings.php +++ b/application/Espo/Services/Settings.php @@ -111,6 +111,10 @@ class Settings extends \Espo\Core\Services\Base } } + if ($this->getConfig()->get('smtpServer')) { + $data->passwordRecoveryEnabled = true; + } + $fieldDefs = $this->getMetadata()->get(['entityDefs', 'Settings', 'fields']); foreach ($fieldDefs as $field => $fieldParams) { diff --git a/client/res/templates/login.tpl b/client/res/templates/login.tpl index 1e39f39c06..67ac29f0d6 100644 --- a/client/res/templates/login.tpl +++ b/client/res/templates/login.tpl @@ -18,7 +18,7 @@