fix remaining lmLog (references #1245)

This commit is contained in:
David COUTADEUR 2017-06-23 16:37:16 +00:00
parent d8d296873f
commit 06691b85a2

View File

@ -104,7 +104,7 @@ sub get_password {
@rows = $sth->fetchrow_array(); @rows = $sth->fetchrow_array();
}; };
if ($@) { if ($@) {
$self->lmLog( "DBI error while getting password: $@", 'error' ); $self->logger->error("DBI error while getting password: $@");
return ""; return "";
} }
@ -146,9 +146,8 @@ sub hash_password_from_database {
@rows = $sth->fetchrow_array(); @rows = $sth->fetchrow_array();
}; };
if ($@) { if ($@) {
$self->lmLog( $self->logger->error(
"DBI error while hashing with '$dbmethod' hash function: $@", "DBI error while hashing with '$dbmethod' hash function: $@");
'error' );
$self->userLogger->warn("Unable to check password"); $self->userLogger->warn("Unable to check password");
return ""; return "";
} }
@ -296,8 +295,7 @@ sub dynamic_hash_password {
# no valid hash scheme # no valid hash scheme
else { else {
$self->lmLog( "No valid hash scheme: $dbscheme for user $user", $self->logger->error("No valid hash scheme: $dbscheme for user $user");
'error' );
$self->userLogger->warn("Unable to check password for $user"); $self->userLogger->warn("Unable to check password for $user");
return ""; return "";
} }
@ -372,8 +370,7 @@ sub dynamic_hash_new_password {
# no valid hash scheme # no valid hash scheme
else { else {
$self->lmLog( "No selected hash scheme: $dbscheme is invalid", $self->logger->error("No selected hash scheme: $dbscheme is invalid");
'error' );
$self->userLogger->warn("Unable to store password for $user"); $self->userLogger->warn("Unable to store password for $user");
return ""; return "";
} }