#include "auth/basic/UserRequest.h"
#include "auth/Gadgets.h"
#include "auth/State.h"
+#include "auth/UserNameCache.h"
#include "cache_cf.h"
#include "charset.h"
#include "helper.h"
/* now lookup and see if we have a matching auth_user structure in memory. */
Auth::User::Pointer auth_user;
- if ((auth_user = findUserInCache(lb->userKey(), Auth::AUTH_BASIC)) == NULL) {
+ if (!(auth_user = Auth::Basic::User::Cache()->lookup(lb->SBUserKey()))) {
/* the user doesn't exist in the username cache yet */
/* save the credentials */
debugs(29, 9, HERE << "Creating new user '" << lb->username() << "'");