mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Fix indentation
This commit is contained in:
parent
0eeb31b7b7
commit
7186833a26
1 changed files with 18 additions and 18 deletions
|
|
@ -233,15 +233,15 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass
|
||||||
{
|
{
|
||||||
$sDsn = '';
|
$sDsn = '';
|
||||||
switch($this->sEngine){
|
switch($this->sEngine){
|
||||||
case 'MySQL':
|
case 'MySQL':
|
||||||
$sDsn = 'mysql:host='.$this->sHost.';port='.$this->iPort.';dbname='.$this->sDatabase;
|
$sDsn = 'mysql:host='.$this->sHost.';port='.$this->iPort.';dbname='.$this->sDatabase;
|
||||||
break;
|
|
||||||
case 'PostgreSQL':
|
|
||||||
$sDsn = 'pgsql:host='.$this->sHost.';port='.$this->iPort.';dbname='.$this->sDatabase;
|
|
||||||
break;
|
break;
|
||||||
default:
|
case 'PostgreSQL':
|
||||||
$sDsn = 'mysql:host='.$this->sHost.';port='.$this->iPort.';dbname='.$this->sDatabase;
|
$sDsn = 'pgsql:host='.$this->sHost.';port='.$this->iPort.';dbname='.$this->sDatabase;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$sDsn = 'mysql:host='.$this->sHost.';port='.$this->iPort.';dbname='.$this->sDatabase;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -318,19 +318,19 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass
|
||||||
|
|
||||||
case 'mysql_encrypt':
|
case 'mysql_encrypt':
|
||||||
if($this->sEngine == 'MySQL'){
|
if($this->sEngine == 'MySQL'){
|
||||||
$oStmt = $oPdo->prepare('SELECT ENCRYPT(?) AS encpass');
|
$oStmt = $oPdo->prepare('SELECT ENCRYPT(?) AS encpass');
|
||||||
if ($oStmt->execute(array($sPassword)))
|
if ($oStmt->execute(array($sPassword)))
|
||||||
|
{
|
||||||
|
$aFetchResult = $oStmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||||
|
if (\is_array($aFetchResult) && isset($aFetchResult[0]['encpass']))
|
||||||
{
|
{
|
||||||
$aFetchResult = $oStmt->fetchAll(\PDO::FETCH_ASSOC);
|
$sResult = $aFetchResult[0]['encpass'];
|
||||||
if (\is_array($aFetchResult) && isset($aFetchResult[0]['encpass']))
|
|
||||||
{
|
|
||||||
$sResult = $aFetchResult[0]['encpass'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::CouldNotSaveNewPassword);
|
|
||||||
}
|
}
|
||||||
break;
|
}else{
|
||||||
|
throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::CouldNotSaveNewPassword);
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $sResult;
|
return $sResult;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue