X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/61efd9d023ae34c1290ef2e1ae25829c509caaee..60d2288b7fca6caf0f5d9d3eee972f040eb24fb0:/WEB-INF/lib/form/Form.class.php diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index f8a32ec5..868a3b3c 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -62,6 +62,12 @@ class Form { if (isset($arguments['aspassword'])) $el->setAsPassword($arguments['aspassword']); break; + case 'password': + import('form.PasswordField'); + $el = new PasswordField($arguments['name']); + $el->setMaxLength(@$arguments['maxlength']); + break; + // TODO: refactoring ongoing down from here. // aspassword - change this name to something better? Perhaps. // Change $arguments to something better too (maybe). $args or $params?