Commit 596d9251 authored by sympa-authors's avatar sympa-authors
Browse files

[reported by D.Lamballais Fix: 'password_case' wwsympa.conf parameter was not used


git-svn-id: https://subversion.renater.fr/sympa/trunk@2479 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 50a7faf7
......@@ -694,8 +694,10 @@ sub _load_auth {
sub get_robot_conf {
my ($robot, $param) = @_;
if (defined $Conf{'robots'}{$robot} && defined $Conf{'robots'}{$robot}{$param}) {
return $Conf{'robots'}{$robot}{$param};
if ($robot ne '*') {
if (defined $Conf{'robots'}{$robot} && defined $Conf{'robots'}{$robot}{$param}) {
return $Conf{'robots'}{$robot}{$param};
}
}
## default
......
......@@ -89,8 +89,8 @@ sub authentication {
next if ($email !~ /$auth_service->{'regexp'}/i);
next if (($email =~ /$auth_service->{'negative_regexp'}/i)&&($auth_service->{'negative_regexp'}));
if ($auth_service->{'auth_type'} eq 'user_table') {
if((($wwsconf->{'password_case'} eq 'insensitive') && (lc($pwd) eq lc($user->{'password'}))) ||
if(((&Conf::get_robot_conf('*','password_case') eq 'insensitive') && (lc($pwd) eq lc($user->{'password'}))) ||
($pwd eq $user->{'password'})) {
return {'user' => $user,
'auth' => 'classic',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment