Skip to content

Commit

Permalink
Merge pull request #102 from gnumpi/addImapErrorToLog
Browse files Browse the repository at this point in the history
added logging of errors for imap login
  • Loading branch information
violoncelloCH authored Sep 1, 2019
2 parents 316e57c + 1883b0c commit 6f4d19d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 6f4d19d

Please sign in to comment.