$heading = $plugin->get_instance_name($instance);
$mform->addElement('header', 'guestheader', $heading);
- $mform->addElement('passwordunmask', 'guestpassword', get_string('password', 'enrol_guest'));
+ $mform->addElement('password', 'guestpassword', get_string('password', 'enrol_guest'));
$this->add_action_buttons(false, get_string('submit'));
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'),
+ $mform->addElement('password', 'enrolpassword', get_string('password', 'enrol_self'),
array('id' => 'enrolpassword_'.$instance->id));
$context = context_course::instance($this->instance->courseid);
$keyholders = get_users_by_capability($context, 'enrol/self:holdkey', user_picture::fields('u'));
if (!empty($CFG->passwordpolicy)){
$mform->addElement('static', 'passwordpolicyinfo', '', print_password_policy());
}
- $mform->addElement('passwordunmask', 'password', get_string('password'), 'maxlength="32" size="12"');
+ $mform->addElement('password', 'password', get_string('password'), 'maxlength="32" size="12"');
$mform->setType('password', core_user::get_property_type('password'));
$mform->addRule('password', get_string('missingpassword'), 'required', null, 'client');