]> git.evergreen-ils.org Git - Evergreen.git/commit
Performance tweak to oilsAuthComplete().
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Mar 2010 20:12:40 +0000 (20:12 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Mar 2010 20:12:40 +0000 (20:12 +0000)
commit872ab062a36f6b962136fa127f705994e2400d75
tree53887e9876910eea286fe050601161384a7b2592
parent7b9fb2818d9b7441ddf09ebe42c4ed79bd40dba0
Performance tweak to oilsAuthComplete().

Formerly, if authenticating a barcode rather tnan a user name, we would
look up the same barcode twice in actor.card: first to get the user id
for a lookup in actor.usr, and again to determine whether the card was
active.  Now we use a single lookup for both purposes.  In other respects
the validation logic is unchanged.

The oilsAuthCheckCard() function, which performed the second lookup, has
been eliminated.

The oilsUtilsFetchUserByBarcode() function, in oils_utils.c, is no
longer called from anywhere and may be eliminated.

Also added a doxygen-style comment block to document oilsUtilsFetchUserByBarcode(),
and tweaked few comments in the body of the function.

M    Open-ILS/src/c-apps/oils_auth.c

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15916 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/c-apps/oils_auth.c