login.success hook is always \RainLoop\Model\MainAccount

This commit is contained in:
the-djmaze 2022-11-30 11:59:54 +01:00
parent a4ea8a46a8
commit 9df052a435
2 changed files with 7 additions and 10 deletions

View file

@ -135,7 +135,7 @@ $Plugin->addHook('hook.name', 'functionName');
### login.success
params:
\RainLoop\Model\Account $oAccount
\RainLoop\Model\MainAccount $oAccount
## IMAP

View file

@ -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