#include "usersimpl.h" #include <modifycommand.h> #include <sql/users/authenticate.sql.h> #include <sql/users/verify.sql.h> namespace Gentoo { namespace Service { Users::Users(boost::shared_ptr<AdHoc::ResourcePool<DB::Connection>> d) : IceTray::AbstractCachingDatabaseClient(d) { } Gentoo::UserPtr Users::authenticate(const std::string & username, const std::string & password, const Ice::Current &) { return fetchCache<Gentoo::UserPtr>(sql::users::authenticate, 30, username, password); } Gentoo::UserPtr Users::verify(const std::string & username, const std::string & verifyguid, const Ice::Current &) { return fetch<Gentoo::UserPtr>(sql::users::verify, username, verifyguid); } } }