mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 15:08:59 +01:00
try to disconnect, when connect was successful, but no username for login is supplied
This commit is contained in:
parent
859e431762
commit
adf90ad4ca
@ -525,6 +525,7 @@ class defaultimap extends Net_IMAP
|
|||||||
if(empty($username))
|
if(empty($username))
|
||||||
{
|
{
|
||||||
if ($this->debug) error_log(__METHOD__."No username supplied.".function_backtrace());
|
if ($this->debug) error_log(__METHOD__."No username supplied.".function_backtrace());
|
||||||
|
if ($this->_connected) $this->disconnect(); // disconnect (if connected)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if( PEAR::isError($status = parent::login($username, $password, 'LOGIN', !$this->isAdminConnection)) ) {
|
if( PEAR::isError($status = parent::login($username, $password, 'LOGIN', !$this->isAdminConnection)) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user