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>
Fri, 8 Jan 2016 20:06:19 +0000 (15:06 -0500)
commitca6e713fa980237baeccb8fb2e6ebac8ed0c4889
tree704d72f4c426c0d36e8ebf82bf77f7f62d882773
parent17bea2cf56d4cce89fbfec7d2352f628b5dd33ff
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