I'm beginning to wonder how many times it'll take me to get the
authordjfiander <djfiander>
Sat, 27 May 2006 11:50:01 +0000 (11:50 +0000)
committerdjfiander <djfiander>
Sat, 27 May 2006 11:50:01 +0000 (11:50 +0000)
password check right.  But this time I actually ran it through
the test harness before checking it in.

Sip/MsgType.pm

index fb42f00..e963562 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;
        }