projects
/
SIPServer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0405b95
)
Get the test right for checking the patron password in
author
djfiander
<djfiander>
Sat, 27 May 2006 11:30:23 +0000
(11:30 +0000)
committer
djfiander
<djfiander>
Sat, 27 May 2006 11:30:23 +0000
(11:30 +0000)
handle_patron_enable()
Sip/MsgType.pm
patch
|
blob
|
history
diff --git
a/Sip/MsgType.pm
b/Sip/MsgType.pm
index
1c1e6ba
..
fb42f00
100644
(file)
--- 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;
}