Bug 18755: Allow empty passwords in Patron Info to return OK
commit459c144f2a54f4b1ddeb9e7595030107e821d2b2
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 8 Jun 2017 11:59:55 +0000 (8 12:59 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 12 Jul 2017 09:17:15 +0000 (12 11:17 +0200)
treefe1775f90365e46b7e5fa88f1cd8c52c075a975b
parent037e056c0451e1d383a414e47573f5a4cece9677
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>
(cherry picked from commit ebb887e5c93c96c6fc51d95b76de6a221ba4463e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/SIP/Sip/MsgType.pm
t/db_dependent/SIP/Message.t