Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-50440

External database authentication not working with ado_mssql

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.9
    • Authentication
    • MOODLE_29_STABLE

      Moodle 2.9
      file: auth\db\auth.php
      function: user_login($username, $password)
      external database: ado_mssql

      When using external database for both username and password user_login never returns true.

      Fix:
      -------------
      if ($rs->EOF)

      { $authdb->Close(); return false; }

      -----------

      Replacing above code with following fixed my problem.

      ----------
      if (!$rs->EOF)

      { $rs->Close(); $authdb->Close(); return true; }

      else

      { $rs->Close(); $authdb->Close(); return false; }

      ----------------------

            Unassigned Unassigned
            akaba Ali Kaba
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.