Permalink
Browse files

Remove 'username' from the $moodleattributes array.

It doesn't make sense at all (username is not part of the externally mapped
fields) and produces a notice that breaks HTTP headers with debugging enabled.
  • Loading branch information...
1 parent fb7e6a9 commit 4e4955b55e12fb6ed34f54f447109c2342529883 iarenaza committed Aug 15, 2008
Showing with 0 additions and 4 deletions.
  1. +0 −1 auth/cas/auth.php
  2. +0 −1 auth/db/auth.php
  3. +0 −1 auth/ldap/auth.php
  4. +0 −1 auth/shibboleth/auth.php
View
@@ -495,7 +495,6 @@ function ldap_attributes () {
}
}
}
- $moodleattributes['username'] = $this->config->user_attribute;
return $moodleattributes;
}
/**
View
@@ -135,7 +135,6 @@ function db_attributes() {
$moodleattributes[$field] = $this->config->{"field_map_$field"};
}
}
- $moodleattributes['username'] = $this->config->fielduser;
return $moodleattributes;
}
View
@@ -1464,7 +1464,6 @@ function ldap_attributes () {
}
}
}
- $moodleattributes['username'] = $this->config->user_attribute;
return $moodleattributes;
}
View
@@ -129,7 +129,6 @@ function get_attributes() {
$moodleattributes[$field] = $configarray["field_map_$field"];
}
}
- $moodleattributes['username'] = $configarray["user_attribute"];
return $moodleattributes;
}

0 comments on commit 4e4955b

Please sign in to comment.