original_string: function user_login ($username, $password) {
          $this->connectCAS();
          return phpCAS::isAuthenticated() && (trim(core_text::strtolower(phpCAS::getUser())) == $username);
      }
code: function user_login ($username, $password) {
          $this->connectCAS();
          return phpCAS::isAuthenticated() && (trim(core_text::strtolower(phpCAS::getUser())) == $username);
      }
code_tokens: function user_login ( $ username , $ password ) { $ this -> connectCAS ( ) ; return phpCAS :: isAuthenticated ( ) && ( trim ( core_text :: strtolower ( phpCAS :: getUser ( ) ) ) == $ username ) ; }
docstring: Authenticates user against CAS
  Returns true if the username and password work and false if they are
  wrong or don't exist.
  
  @param string $username The username (with system magic quotes)
  @param string $password The password (with system magic quotes)
  @return bool Authentication success or failure.
docstring_tokens: Authenticates user against CAS Returns true if the username and password work and false if they are wrong or don t exist .