auth_chkpw: added pass|fail prefix to log msgs

This commit is contained in:
Matt Simerson 2013-04-21 17:02:34 -04:00
parent b7ce45a502
commit 7d88c51e0a

View File

@ -136,11 +136,12 @@ sub auth_checkpassword {
my $status = $?; my $status = $?;
if ($status != 0) { if ($status != 0) {
$self->log(LOGNOTICE, "authentication failed ($status)"); $self->log(LOGNOTICE, "fail, auth failed: $status");
return (DECLINED); return (DECLINED);
} }
$self->connection->notes('authuser', $user); $self->connection->notes('authuser', $user);
$self->log(LOGINFO, "pass, auth success with $method");
return (OK, "auth_checkpassword"); return (OK, "auth_checkpassword");
} }