diff --git a/js/form.js b/js/form.js new file mode 100644 index 0000000..f254998 --- /dev/null +++ b/js/form.js @@ -0,0 +1,7 @@ +$('#show-password').click(function () { + if ( $('#password').attr('type') == "password" ) { + $('#password').attr('type', 'text'); + } else { + $('#password').attr('type', 'password'); + } +}); diff --git a/templates/form.php b/templates/form.php index 8b392fc..bd3450a 100644 --- a/templates/form.php +++ b/templates/form.php @@ -1,5 +1,6 @@ = 12 ) \OCP\Util::addStyle('core', 'guest'); ?>