LP#1468422 auth-internal validate API
authorBill Erickson <berickxx@gmail.com>
Fri, 8 Jan 2016 20:06:14 +0000 (15:06 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 17 Feb 2016 22:21:33 +0000 (17:21 -0500)
commit9ed3efdfcc8a9b6feff7572f0d80ce93395a18b4
tree67acc6cf171e6a1d710eaf79e23a7f4f8b4f070e
parent43b6f9b188abfb6c3cfd35c2551eb559ecbaddff
LP#1468422 auth-internal validate API

Adds a new open-ils.auth_internal API
open-ils.auth_internal.user.validate for checking whether a user should
be allowed to login.

It tests user existence, active=true, barred=false, deleted=false.

If a barcode is also provided, it confirms the barcode exists and is
active.

Modifies open-ils.auth.authenticate.complete to use the new API instead
of implementing the logic directly.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/c-apps/oils_auth.c
Open-ILS/src/c-apps/oils_auth_internal.c