-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.9
-
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)
-----------
Replacing above code with following fixed my problem.
----------
if (!$rs->EOF)
else
{ $rs->Close(); $authdb->Close(); return false; }----------------------