Skip to content
Permalink
Browse files

MDL-33560 Enrol: Enrol password can be unmasked

  • Loading branch information...
FMCorz committed Jul 17, 2012
1 parent 904673d commit 6aa3aabe95a1e97b24be6b7f941f70f1013db8ad
Showing with 3 additions and 3 deletions.
  1. +2 −2 enrol/self/locallib.php
  2. +1 −1 lib/form/yui/passwordunmask/passwordunmask.js
@@ -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'));
}
@@ -127,4 +127,4 @@ public function validation($data, $files) {
return $errors;
}
}
}
@@ -36,4 +36,4 @@ YUI.add('moodle-form-passwordunmask', function(Y) {
M.form.passwordunmask = function(params) {
return new PASSWORDUNMASK(params);
}
}, '@VERSION@', {requires:['base', 'node']});
}, '@VERSION@', {requires:['base', 'node']});

0 comments on commit 6aa3aab

Please sign in to comment.
You can’t perform that action at this time.