~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/authentication.cc

  • Committer: Monty Taylor
  • Date: 2011-03-08 23:28:46 UTC
  • mfrom: (2225.1.1 build)
  • Revision ID: mordred@inaugust.com-20110308232846-tbc4emy0qvjb2zew
Merged brian's auth patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
bool plugin::Authentication::isAuthenticated(drizzled::identifier::User::const_reference sctx,
68
68
                                             const std::string &password)
69
69
{
70
 
  /* If we never loaded any auth plugins, just return true */
71
 
  if (all_authentication.empty())
72
 
    return true;
73
 
 
74
70
  /* Use find_if instead of foreach so that we can collect return codes */
75
71
  std::vector<plugin::Authentication *>::iterator iter=
76
72
    std::find_if(all_authentication.begin(), all_authentication.end(),