diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-18 15:44:20 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-18 15:44:20 +0200 |
commit | a5b4308a517a66b320ba69be8604144ce74f417e (patch) | |
tree | ef952ee37dd149322cbacea72ce1e099c32bcc2f /lib | |
parent | b072d2c49d6f61c2b55abf12e04bdf2166dbd4f4 (diff) | |
download | nextcloud-server-a5b4308a517a66b320ba69be8604144ce74f417e.tar.gz nextcloud-server-a5b4308a517a66b320ba69be8604144ce74f417e.zip |
Don't put the SMTP password into the HTML code
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Settings/Admin/Additional.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Settings/Admin/Additional.php b/lib/private/Settings/Admin/Additional.php index d133e4737a7..59058851a64 100644 --- a/lib/private/Settings/Admin/Additional.php +++ b/lib/private/Settings/Admin/Additional.php @@ -65,6 +65,10 @@ class Additional implements ISettings { 'mail_smtppassword' => $this->config->getSystemValue('mail_smtppassword', ''), ]; + if ($parameters['mail_smtppassword'] !== '') { + $parameters['mail_smtppassword'] = '********'; + } + return new TemplateResponse('settings', 'admin/additional-mail', $parameters, ''); } |