Added is_internal_auth() function to quickly identify internal authentication

This commit is contained in:
moodler
2003-09-22 13:58:20 +00:00
parent 9f798bff9f
commit ba7166c377
+7
View File
@@ -524,6 +524,13 @@ function get_moodle_cookie() {
}
}
function is_internal_auth() {
/// Returns true if an internal authentication method is being used.
global $CFG;
return ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual");
}
function create_user_record($username, $password) {
/// Creates a bare-bones user record