Merge branch 'MDL-59326' of https://github.com/paulholden/moodle
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user