From: djfiander Date: Sat, 27 May 2006 11:30:23 +0000 (+0000) Subject: Get the test right for checking the patron password in X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3e9b05492459ef8f86d1fc900f98290c75c66342;p=working%2FSIPServer.git Get the test right for checking the patron password in handle_patron_enable() --- diff --git a/Sip/MsgType.pm b/Sip/MsgType.pm index 1c1e6ba..fb42f00 100644 --- a/Sip/MsgType.pm +++ b/Sip/MsgType.pm @@ -1160,7 +1160,7 @@ sub handle_patron_enable { $resp .= add_field(FID_VALID_PATRON_PWD, 'N'); } else { # valid patron - if (defined($patron_pwd) && !$patron->check_password($patron_pwd)) { + if (!defined($patron_pwd) || !$patron->check_password($patron_pwd)) { # Don't enable the patron if there was an invalid password $status = $patron->enable; }