Added is_internal_auth() function to quickly identify internal authentication
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user