Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'MDL-59326' of https://github.com/paulholden/moodle
  • Loading branch information
David Monllaó committed Apr 15, 2019
2 parents 72a70e3 + 114973b commit f82701a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cache/stores/mongodb/addinstanceform.php
Expand Up @@ -71,7 +71,7 @@ protected function configuration_definition() {
$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);

Expand All @@ -98,4 +98,4 @@ protected function configuration_definition() {
$form->setAdvanced('extendedmode');
$form->setType('extendedmode', PARAM_BOOL);
}
}
}
2 changes: 1 addition & 1 deletion repository/webdav/lib.php
Expand Up @@ -184,7 +184,7 @@ public static function instance_config_form($mform) {
$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() {
Expand Down

0 comments on commit f82701a

Please sign in to comment.