Skip to content

Commit

Permalink
Revert "Revert "[mms] Add configuration to allow for SMTP authenticat…
Browse files Browse the repository at this point in the history
…ion if the current Horde access does not have an authenticated user.""

This reverts commit 0c07366.

Conflicts:
	framework/Core/package.xml
  • Loading branch information
yunosh committed Jul 8, 2014
1 parent fa29b4b commit d6715f0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
14 changes: 9 additions & 5 deletions framework/Core/lib/Horde/Core/Factory/Mail.php
Expand Up @@ -97,12 +97,16 @@ public function getConfig()
* 'auth'. Will remove in create() if final config doesn't require
* authentication. */
if (strcasecmp($transport, 'smtp') === 0) {
if (!isset($params['username'])) {
$params['username'] = $registry->getAuth();
}
if (!isset($params['password'])) {
$params['password'] = $registry->getAuthCredential('password');
if ($auth = $registry->getAuth()) {
if (!empty($params['username_auth'])) {
$params['username'] = $auth;
}
if (!empty($params['password_auth'])) {
$params['password'] = $registry->getAuthCredential('password');
}
}

unset($params['password_auth'], $params['username_auth']);
}

return array($transport, $params);
Expand Down
6 changes: 3 additions & 3 deletions framework/Core/package.xml
Expand Up @@ -39,7 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Add configuration to allow for SMTP authentication if the current Horde access does not have an authenticated user.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -3479,7 +3479,7 @@
<date>2014-07-08</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [jan] Fix bothed 2.12.0 release.
* [jan] Fix botched 2.12.0 release.
* [mjr] Fix closing smartmobile dialog pages (Bug #13316).
* [mjr] Fix issue that could cause multiple tabs to be shown as active when tab_name could be a mix of integers or strings.
</notes>
Expand All @@ -3494,7 +3494,7 @@
<date>2014-07-08</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Add configuration to allow for SMTP authentication if the current Horde access does not have an authenticated user.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit d6715f0

Please sign in to comment.