Merged in release/3.2.3 (pull request #6506)
HOR-4626 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -1271,22 +1271,6 @@ class EmailServer
|
||||
|
||||
while ($rsCriteria->next()) {
|
||||
$row = $rsCriteria->getRow();
|
||||
|
||||
$passwd = $row["MESS_PASSWORD"];
|
||||
$passwdDec = G::decrypt($passwd, "EMAILENCRYPT");
|
||||
$auxPass = explode("hash:", $passwdDec);
|
||||
|
||||
if (count($auxPass) > 1) {
|
||||
if (count($auxPass) == 2) {
|
||||
$passwd = $auxPass[1];
|
||||
} else {
|
||||
array_shift($auxPass);
|
||||
$passwd = implode("", $auxPass);
|
||||
}
|
||||
}
|
||||
|
||||
$row["MESS_PASSWORD"] = $passwd;
|
||||
|
||||
$arrayEmailServer[] = $this->getEmailServerDataFromRecord($row);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,12 +30,19 @@ class EmailServer extends Api
|
||||
}
|
||||
|
||||
/**
|
||||
* Get List of Emails Servers
|
||||
*
|
||||
* @url GET
|
||||
*
|
||||
* @param string $filter
|
||||
* @param int $start
|
||||
* @param int $limit
|
||||
* @param int $start
|
||||
* @param int $limit
|
||||
*
|
||||
* @return
|
||||
* @throws RestException
|
||||
*
|
||||
* @access protected
|
||||
* @class AccessControl {@permission PM_SETUP_EMAIL}
|
||||
*/
|
||||
public function index($filter = null, $start = null, $limit = null)
|
||||
{
|
||||
@@ -67,11 +74,19 @@ class EmailServer extends Api
|
||||
}
|
||||
|
||||
/**
|
||||
* Get List of Emails Servers
|
||||
*
|
||||
* @url GET /paged
|
||||
*
|
||||
* @param string $filter
|
||||
* @param int $start
|
||||
* @param int $limit
|
||||
* @param int $start
|
||||
* @param int $limit
|
||||
*
|
||||
* @return array
|
||||
* @throws RestException
|
||||
*
|
||||
* @access protected
|
||||
* @class AccessControl {@permission PM_SETUP_EMAIL}
|
||||
*/
|
||||
public function doGetPaged($filter = null, $start = null, $limit = null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user