Make LDAP auth return an error for failure to match passwords.

This commit is contained in:
Colin Kuskie 2009-06-11 16:16:22 +00:00
parent 09ba3dba91
commit be15838529
3 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ sub authenticate {
# Authentication failed
if ($auth->code == 48 || $auth->code == 49){
$self->SUPER::authenticationError;
$error .= $self->SUPER::authenticationError;
}
elsif ($auth->code > 0) { # Some other LDAP error happened
$error .= '<li>LDAP error "'.$self->ldapStatusCode($auth->code).'" occured.'.$i18n->get(69).'</li>';

View file

@ -125,7 +125,6 @@ sub authenticate {
return 1;
}
$self->user(WebGUI::User->new($self->session,1));
my $i18n = WebGUI::International->new($self->session);
$self->SUPER::authenticationError;
return 0;
}