Bug 18755: Allow empty passwords in Patron Info to return OK
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 8 Jun 2017 11:59:55 +0000 (12:59 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 6 Jul 2017 17:29:04 +0000 (14:29 -0300)
commitebb887e5c93c96c6fc51d95b76de6a221ba4463e
treed4f17875c97a60c0b87f4769e58cef755750c5d2
parentd222da0602ba96f08cc6c026f39451b0aa7de01e
Bug 18755: Allow empty passwords in Patron Info to return OK

With this patch a parameter 'allow_empty_passwords="1" can be added to a
login in the SIP configuration file to allow the behaviour as was normal
before the patch for bug 16610 was applied. Some sip clients rely on
this behaviour sending an empty password field when they wish to
validate to user but do not have the password.
If a password is supplied it will be validated

A test has been added to Message.t to confirm this behaviour

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/SIP/Sip/MsgType.pm
t/db_dependent/SIP/Message.t