Remove redundant parse_host() call
This commit is contained in:
parent
6d46e0c9f2
commit
81fdc1642a
1 changed files with 2 additions and 1 deletions
|
@ -271,7 +271,7 @@ class kolab_auth extends rcube_plugin
|
|||
$email_attr = $rcmail->config->get('kolab_auth_email');
|
||||
|
||||
// get username and host
|
||||
$host = rcube_utils::parse_host($args['host']);
|
||||
$host = $args['host'];
|
||||
$user = $args['user'];
|
||||
$pass = $args['pass'];
|
||||
$loginas = trim(rcube_utils::get_input_value('_loginas', rcube_utils::INPUT_POST));
|
||||
|
@ -302,6 +302,7 @@ class kolab_auth extends rcube_plugin
|
|||
$result = $this->ldap->bind($dn, $pass);
|
||||
|
||||
if (!$result) {
|
||||
$args['abort'] = true;
|
||||
return $args;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue