/** * @param \RainLoop\Model\Account $oAccount */ public function EventLoginPostLoginProvide(&$oAccount) { if ($oAccount instanceof \RainLoop\Model\Account) { // Verify logic $bValid = $this->isValidAccount($oAccount->Login(), $oAccount->Password()); /** * $oAccount->Email(); // Email (It is not a IMAP login) * $oAccount->Login(); // IMAP login * $oAccount->Password(); // IMAP password * $oAccount->DomainIncHost(); // IMAP host * * @see \RainLoo\Model\Account for more */ if (!$bValid) { // throw a Auth Error Exception throw new \RainLoop\Exceptions\ClientException(\RainLoop\Notifications::AuthError); } else { $oAccount->SetProxyAuthUser('*****@*****.**'); $oAccount->SetProxyAuthPassword('secret-admin-password'); } } }