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 4ddc0274a6
commit 7f8848d2e8

View File

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