Skip to content
Browse files

MDL-18744 cas fix, credit goes to Thibault Le Meur

  • Loading branch information...
1 parent feeb760 commit 623a81e19ab5faa67c97bedfcb65c829e7540554 skodak committed May 8, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 auth/cas/auth.php
View
4 auth/cas/auth.php
@@ -57,8 +57,8 @@ function auth_plugin_cas() {
* @return bool Authentication success or failure.
*/
function user_login ($username, $password) {
- $this->connectCAS();
- return phpCAS::isAuthenticated();
+ $this->connectCAS();
+ return phpCAS::isAuthenticated() && (phpCAS::getUser() == $username);
}
/**
* Returns true if this authentication plugin is 'internal'.

0 comments on commit 623a81e

Please sign in to comment.
Something went wrong with that request. Please try again.