mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Fixes cPanel CSS issue #697
This commit is contained in:
parent
0d7ffcb0a5
commit
e067079f8a
5 changed files with 19 additions and 8 deletions
|
|
@ -16,6 +16,14 @@ class LoginRemotePlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
public function Init() : void
|
||||
{
|
||||
$this->addPartHook('RemoteAutoLogin', 'ServiceRemoteAutoLogin');
|
||||
$this->addHook('filter.app-data', 'FilterAppData');
|
||||
}
|
||||
|
||||
public function FilterAppData($bAdmin, &$aResult)
|
||||
{
|
||||
if (!$bAdmin && \is_array($aResult) && empty($aResult['Auth']) && isset($_ENV['REMOTE_USER'])) {
|
||||
$aResult['DevEmail'] = $this->Config()->Get('plugin', 'email', $_ENV['REMOTE_USER']);
|
||||
}
|
||||
}
|
||||
|
||||
public function ServiceRemoteAutoLogin() : bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue