MDL-53048 form: Rewrite passwordunmask
This version: * should work with the Behat Goutte driver * should not suffer from password autofill anxiety * should allow unmasking (and masking) of a password * should allow editing of passwords in either masked, or unmasked form AMOS BEGIN MOV [revealpassword,core_form],[passwordunmaskrevealhint,core_form] AMOS END
This commit is contained in:
+4
-6
@@ -2406,13 +2406,11 @@ class admin_setting_configpasswordunmask extends admin_setting_configtext {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns XHTML for the field
|
||||
* Writes Javascript into the HTML below right before the last div
|
||||
* Returns HTML for the field.
|
||||
*
|
||||
* @todo Make javascript available through newer methods if possible
|
||||
* @param string $data Value for the field
|
||||
* @param string $query Passed as final argument for format_admin_setting
|
||||
* @return string XHTML field
|
||||
* @param string $data Value for the field
|
||||
* @param string $query Passed as final argument for format_admin_setting
|
||||
* @return string Rendered HTML
|
||||
*/
|
||||
public function output_html($data, $query='') {
|
||||
global $OUTPUT;
|
||||
|
||||
Reference in New Issue
Block a user