MDL-53048 form: Rewrite passwordunmask
authorAndrew Nicols <andrew@nicols.co.uk>
Sun, 21 Aug 2016 23:03:51 +0000 (07:03 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 24 Oct 2016 01:24:39 +0000 (09:24 +0800)
commitca25005c69a7fd5b947350eb62278eae07b339cb
tree70c5298f4c5cde39887299fc53499736c8f045c3
parentac157b0bbe21aef62af94ff4d1849442f7f46599
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
27 files changed:
admin/templates/setting_configpasswordunmask.mustache
lang/en/deprecated.txt
lang/en/form.php
lib/adminlib.php
lib/behat/behat_field_manager.php
lib/behat/classes/partial_named_selector.php
lib/behat/form_field/behat_form_passwordunmask.php [new file with mode: 0644]
lib/form/amd/build/passwordunmask.min.js [new file with mode: 0644]
lib/form/amd/src/passwordunmask.js [new file with mode: 0644]
lib/form/passwordunmask.php
lib/form/templatable_form_element.php
lib/form/templates/element-passwordunmask-fill.mustache [new file with mode: 0644]
lib/form/templates/element-passwordunmask.mustache [new file with mode: 0644]
lib/form/templates/element-template.mustache [new file with mode: 0644]
lib/form/yui/build/moodle-form-passwordunmask/moodle-form-passwordunmask-debug.js
lib/form/yui/build/moodle-form-passwordunmask/moodle-form-passwordunmask-min.js
lib/form/yui/build/moodle-form-passwordunmask/moodle-form-passwordunmask.js
lib/form/yui/src/passwordunmask/js/passwordunmask.js
lib/form/yui/src/passwordunmask/meta/passwordunmask.json
pix/t/passwordunmask-edit.png [new file with mode: 0644]
pix/t/passwordunmask-edit.svg [new file with mode: 0644]
pix/t/passwordunmask-reveal.png [new file with mode: 0644]
pix/t/passwordunmask-reveal.svg [new file with mode: 0644]
theme/boost/templates/core_admin/setting_configpasswordunmask.mustache
theme/boost/templates/core_form/element-passwordunmask.mustache
theme/bootstrapbase/less/moodle/forms.less
theme/bootstrapbase/style/moodle.css