diff --git a/lib/imap.php b/lib/imap.php index 9d05b73..ac9e8ce 100644 --- a/lib/imap.php +++ b/lib/imap.php @@ -72,6 +72,10 @@ public function checkPassword($uid, $password) { $uid = $pieces[0]; } } else { + OC::$server->getLogger()->error( + 'ERROR: User has a wrong domain! Expecting: '.$this->domain, + ['app' => 'user_external'] + ); return false; } } else { @@ -101,7 +105,13 @@ public function checkPassword($uid, $password) { $uid = mb_strtolower($uid); $this->storeUser($uid, $groups); return $uid; + } else { + OC::$server->getLogger()->error( + 'ERROR: Could not connect via roundcube lib: '.$rcube->error, + ['app' => 'user_external'] + ); } + return false; } }