mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-27 09:36:09 +08:00
login.success
hook is always \RainLoop\Model\MainAccount
This commit is contained in:
parent
a4ea8a46a8
commit
9df052a435
2 changed files with 7 additions and 10 deletions
|
@ -135,7 +135,7 @@ $Plugin->addHook('hook.name', 'functionName');
|
|||
|
||||
### login.success
|
||||
params:
|
||||
\RainLoop\Model\Account $oAccount
|
||||
\RainLoop\Model\MainAccount $oAccount
|
||||
|
||||
## IMAP
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ use RainLoop\Enumerations\Capa;
|
|||
use RainLoop\Enumerations\PluginPropertyType;
|
||||
use RainLoop\Plugins\AbstractPlugin;
|
||||
use RainLoop\Plugins\Property;
|
||||
use RainLoop\Model\Account;
|
||||
use RainLoop\Model\MainAccount;
|
||||
use RainLoop\Actions;
|
||||
|
||||
|
@ -39,11 +38,10 @@ class LdapMailAccountsPlugin extends AbstractPlugin
|
|||
/**
|
||||
* Add additional mail accounts to the webinterface of the user by looking up the ldap directory
|
||||
*
|
||||
* @param Account $oAccount
|
||||
* @param MainAccount $oAccount
|
||||
*/
|
||||
public function AddAdditionalLdapMailAccounts(Account $oAccount)
|
||||
public function AddAdditionalLdapMailAccounts(MainAccount $oAccount)
|
||||
{
|
||||
if ($oAccount instanceof MainAccount) {
|
||||
// Set up config
|
||||
$config = LdapMailAccountsConfig::MakeConfig($this->Config());
|
||||
|
||||
|
@ -51,7 +49,6 @@ class LdapMailAccountsPlugin extends AbstractPlugin
|
|||
|
||||
$oldapMailAccounts->AddLdapMailAccounts($oAccount);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines the content of the plugin configuration page inside the Admin Panel of SnappyMail
|
||||
|
|
Loading…
Reference in a new issue