X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=auth%2Fdb%2Flib.php;h=b975dcc0d9d0100ed5738cb4d617677eec20ff14;hp=0e9677e1f9f1ba3401667e063eab085c21b76c2c;hb=bf09e379a4da8045c0ec96f3e78fce9a0f687f18;hpb=d1b4e172675f74f630e1d5b8939af7f4f60ea0d7 diff --git a/auth/db/lib.php b/auth/db/lib.php index 0e9677e1f9f..b975dcc0d9d 100644 --- a/auth/db/lib.php +++ b/auth/db/lib.php @@ -1,17 +1,17 @@ auth_dbhost = "localhost"; -$CFG->auth_dbtype = "mysql"; // (postgresql, etc) -$CFG->auth_dbname = "authtest"; -$CFG->auth_dbtable = "users"; -$CFG->auth_dbuser = "user"; -$CFG->auth_dbpass = "pass"; -$CFG->auth_dbfielduser = "user"; -$CFG->auth_dbfieldpass = "pass"; +$CFG->auth_dbhost = "localhost"; // The computer hosting the database server +$CFG->auth_dbtype = "mysql"; // The database type (mysql, postgres7, access, oracle etc) +$CFG->auth_dbname = "authtest"; // Name of the database itself +$CFG->auth_dbuser = "user"; // Username with read access to the database +$CFG->auth_dbpass = "pass"; // Password matching the above username +$CFG->auth_dbtable = "users"; // Name of the table in the database +$CFG->auth_dbfielduser = "user"; // Name of the field containing usernames +$CFG->auth_dbfieldpass = "pass"; // Name of the field containing passwords function auth_user_login ($username, $password) { // Returns true if the username and password work