Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33560 Enrol: Enrol password can be unmasked

  • Loading branch information...
commit eb51ce159f6d629018925b1a072d2bb9cc57d0cf 1 parent 9a7c3d5
@FMCorz FMCorz authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 enrol/self/locallib.php
View
4 enrol/self/locallib.php
@@ -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'));
}
@@ -128,4 +128,4 @@ public function validation($data, $files) {
return $errors;
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.