Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

CAS authentication: MDL-19671 phpCAS::getUser can return a mixed-case…

… username, so lower-case it for comparison.
  • Loading branch information...
commit 352032b81f22431c0ffb424c9d85df447d7dfae0 1 parent 8f60039
iarenaza authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  auth/cas/auth.php
2  auth/cas/auth.php
@@ -58,7 +58,7 @@ function auth_plugin_cas() {
58 58 */
59 59 function user_login ($username, $password) {
60 60 $this->connectCAS();
61   - return phpCAS::isAuthenticated() && (phpCAS::getUser() == $username);
  61 + return phpCAS::isAuthenticated() && (trim(moodle_strtolower(phpCAS::getUser())) == $username);
62 62 }
63 63 /**
64 64 * Returns true if this authentication plugin is 'internal'.

0 comments on commit 352032b

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