mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 22:17:03 +03:00
Added: Password change plugin API improvements (#910)
This commit is contained in:
parent
b97bd4edf0
commit
cfad4bb005
11 changed files with 107 additions and 18 deletions
|
|
@ -182,9 +182,21 @@ class ServiceActions
|
|||
$aResponseItem = $this->oActions->ExceptionResponse(
|
||||
empty($sAction) ? 'Unknown' : $sAction, $oException);
|
||||
|
||||
if (\is_array($aResponseItem) && 'Folders' === $sAction && $oException instanceof \RainLoop\Exceptions\ClientException)
|
||||
if (\is_array($aResponseItem) && $oException instanceof \RainLoop\Exceptions\ClientException)
|
||||
{
|
||||
$aResponseItem['ClearAuth'] = true;
|
||||
if ('Folders' === $sAction)
|
||||
{
|
||||
$aResponseItem['ClearAuth'] = true;
|
||||
}
|
||||
|
||||
if ($oException->getLogoutOnException())
|
||||
{
|
||||
$aResponseItem['Logout'] = true;
|
||||
if ($oException->getAdditionalMessage())
|
||||
{
|
||||
$this->oActions->SetSpecLogoutCustomMgsWithDeletion($oException->getAdditionalMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1008,7 +1020,7 @@ class ServiceActions
|
|||
public function ServiceExternalLogin()
|
||||
{
|
||||
$this->oHttp->ServerNoCache();
|
||||
|
||||
|
||||
$oException = null;
|
||||
$oAccount = null;
|
||||
$bLogout = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue