Skip to content

Commit 6f4d19d

Browse files
Merge pull request #102 from gnumpi/addImapErrorToLog
added logging of errors for imap login
2 parents 316e57c + 1883b0c commit 6f4d19d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lib/imap.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public function checkPassword($uid, $password) {
7272
$uid = $pieces[0];
7373
}
7474
} else {
75+
OC::$server->getLogger()->error(
76+
'ERROR: User has a wrong domain! Expecting: '.$this->domain,
77+
['app' => 'user_external']
78+
);
7579
return false;
7680
}
7781
} else {
@@ -101,7 +105,13 @@ public function checkPassword($uid, $password) {
101105
$uid = mb_strtolower($uid);
102106
$this->storeUser($uid, $groups);
103107
return $uid;
108+
} else {
109+
OC::$server->getLogger()->error(
110+
'ERROR: Could not connect via roundcube lib: '.$rcube->error,
111+
['app' => 'user_external']
112+
);
104113
}
114+
105115
return false;
106116
}
107117
}

0 commit comments

Comments
 (0)