MDL-9053 - detect + fix broken $CFG->auth setting from the login page; merged from MOODLE_18_STABLE
MDL-9053 - detect + fix broken $CFG->auth setting from the login page; merged from MOODLE_18_STABLE

dilawar/moodle