mirror of
https://github.com/moodle/moodle.git
synced 2025-05-03 23:07:27 +02:00
Now CAS-supplied tokens can override LDAP auth - fixed
This commit is contained in:
parent
1f568ab426
commit
989fa91059
@ -52,7 +52,7 @@ function auth_user_login ($username, $password) {
|
||||
}
|
||||
|
||||
// CAS-supplied auth tokens override LDAP auth
|
||||
if (AUTH_LDAP_NAME === 'cas' && $CFG->use_cas == 1) {
|
||||
if ($CFG->auth == "cas" && !empty($CFG->cas_enabled)) {
|
||||
return cas_ldap_auth_user_login($username, $password);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user