@@ -42,11 +42,12 @@ class OC_User_IMAP extends \OCA\user_external\Base {
|
||||
OCP\Util::writeLog('user_external', 'ERROR: PHP imap extension is not installed', OCP\Util::ERROR);
|
||||
return false;
|
||||
}
|
||||
$mbox = @imap_open($this->mailbox, $uid, $password, OP_HALFOPEN);
|
||||
$mbox = @imap_open($this->mailbox, $uid, $password, OP_HALFOPEN, 1);
|
||||
imap_errors();
|
||||
imap_alerts();
|
||||
if($mbox !== FALSE) {
|
||||
imap_close($mbox);
|
||||
$uid = mb_strtolower($uid);
|
||||
$this->storeUser($uid);
|
||||
return $uid;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user