Typo in authN module which prevented local auth

This commit is contained in:
Oliver Gorwits
2013-08-23 12:32:37 +01:00
parent c6ebc614c3
commit ea5ab6af4b
2 changed files with 7 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ sub match_with_local_pass {
my $settings = $self->realm_settings;
my $password_column = $settings->{users_password_column} || 'password';
return unless $password and $user->password_column;
return unless $password and $user->$password_column;
my $sum = Digest::MD5::md5_hex($password);
return ($sum eq $user->$password_column ? 1 : 0);