mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-18744 cas fix, credit goes to Thibault Le Meur
This commit is contained in:
parent
e03c0c1d49
commit
3db835d1ae
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ class auth_plugin_cas extends auth_plugin_base {
|
||||||
*/
|
*/
|
||||||
function user_login ($username, $password) {
|
function user_login ($username, $password) {
|
||||||
$this->connectCAS();
|
$this->connectCAS();
|
||||||
return phpCAS::isAuthenticated();
|
return phpCAS::isAuthenticated() && (phpCAS::getUser() == $username);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns true if this authentication plugin is 'internal'.
|
* Returns true if this authentication plugin is 'internal'.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue