https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41978 Bug ID: 41978 Summary: REST API auth/password/validation fails on patron with a null cardnumber Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: ovezina@inlibro.com QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com If you create a patron without a card number (null) and try to validate their credentials using auth/password/validation, the request will fail. Error message : Expected string - got null. The failing point isn't the validation but the return values that Koha tries to send back in Auth/Password.pm. We simply need to send: cardnumber || "", for it to work again. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.