Skip to content

Commit

Permalink
MDL-33560 Enrol: Enrol password can be unmasked
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart committed Jul 17, 2012
1 parent 3b52187 commit 2337180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/self/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function definition() {
if ($instance->password) {
//change the id of self enrolment key input as there can be multiple self enrolment methods
$mform->addElement('passwordunmask', 'enrolpassword', get_string('password', 'enrol_self'),
array('id' => $instance->id."_enrolpassword"));
array('id' => 'enrolpassword_'.$instance->id));
} else {
$mform->addElement('static', 'nokey', '', get_string('nopassword', 'enrol_self'));
}
Expand Down Expand Up @@ -127,4 +127,4 @@ public function validation($data, $files) {

return $errors;
}
}
}

0 comments on commit 2337180

Please sign in to comment.