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:
Andrew Nicols
2016-10-24 09:24:39 +08:00
parent ac157b0bbe
commit ca25005c69
27 changed files with 791 additions and 228 deletions
+4 -6
View File
@@ -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;