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, 26 Feb 2016 15:07:42 +0000 (10:07 -0500)
commitbd14977ee5087c59ba720dba809d2c3bbb71b049
treee45ba00d288d19fe403bb84d1cdb22e6ef480aff
parentc29a4c0f703c705241982ddfff18c2e8ffb907a9
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>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/c-apps/oils_auth.c
Open-ILS/src/c-apps/oils_auth_internal.c