This commit is contained in:
David Monllaó 2019-04-15 07:47:33 +02:00
commit f82701acad
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ class cachestore_mongodb_addinstance_form extends cachestore_addinstance_form {
$form->addHelpButton('username', 'username', 'cachestore_mongodb');
$form->setType('username', PARAM_ALPHANUMEXT);
$form->addElement('text', 'password', get_string('password', 'cachestore_mongodb'));
$form->addElement('passwordunmask', 'password', get_string('password', 'cachestore_mongodb'));
$form->addHelpButton('password', 'password', 'cachestore_mongodb');
$form->setType('password', PARAM_TEXT);
@ -98,4 +98,4 @@ class cachestore_mongodb_addinstance_form extends cachestore_addinstance_form {
$form->setAdvanced('extendedmode');
$form->setType('extendedmode', PARAM_BOOL);
}
}
}

View File

@ -184,7 +184,7 @@ class repository_webdav extends repository {
$mform->setType('webdav_port', PARAM_INT);
$mform->addElement('text', 'webdav_user', get_string('webdav_user', 'repository_webdav'), array('size' => '40'));
$mform->setType('webdav_user', PARAM_RAW_TRIMMED); // Not for us to clean.
$mform->addElement('password', 'webdav_password', get_string('webdav_password', 'repository_webdav'),
$mform->addElement('passwordunmask', 'webdav_password', get_string('webdav_password', 'repository_webdav'),
array('size' => '40'));
}
public function supported_returntypes() {