mirror of
https://github.com/moodle/moodle.git
synced 2025-04-27 03:14:20 +02:00
CAS authentication: MDL-19671 phpCAS::getUser can return a mixed-case username, so lower-case it for comparison.
Merged from MOODLE_18_STABLE
This commit is contained in:
parent
adf8f3f9ad
commit
afacbf004a
@ -59,7 +59,7 @@ class auth_plugin_cas extends auth_plugin_base {
|
||||
*/
|
||||
function user_login ($username, $password) {
|
||||
$this->connectCAS();
|
||||
return phpCAS::isAuthenticated() && (phpCAS::getUser() == $username);
|
||||
return phpCAS::isAuthenticated() && (trim(moodle_strtolower(phpCAS::getUser())) == $username);
|
||||
}
|
||||
/**
|
||||
* Returns true if this authentication plugin is 'internal'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user