Get the test right for checking the patron password in
authordjfiander <djfiander>
Sat, 27 May 2006 11:30:23 +0000 (11:30 +0000)
committerdjfiander <djfiander>
Sat, 27 May 2006 11:30:23 +0000 (11:30 +0000)
handle_patron_enable()

Sip/MsgType.pm

index 1c1e6ba..fb42f00 100644 (file)
@@ -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;
        }