LP#1468422 auth-internal validate API
authorBill Erickson <berickxx@gmail.com>
Fri, 8 Jan 2016 20:06:14 +0000 (15:06 -0500)
committerDan Wells <dbw2@calvin.edu>
Fri, 26 Feb 2016 14:18:17 +0000 (09:18 -0500)
commitd98aff96c97d53bebed1e540b6a73d4e5742e50b
tree8b91b612cb81b364022c7aac616f1973d797b2df
parent6f374f878b513e96ceec38d888eaa9174387ed12
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