| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace MGModule\DNSManager2\mgLibs\forms;
- use MGModule\DNSManager2 as main;
- /**
- * Password Form Field
- *
- * @author Michal Czech <michael@modulesgarden.com>
- */
- class passwordField extends abstractField{
- public $showPassword = false;
- public $type = 'password';
-
- static function asteriskVar($input){
- $num = strlen($input);
- $input = '';
-
- for($i=0;$i<$num;$i++)
- {
- $input .= '*';
- }
-
- return $input;
- }
-
- function prepare() {
- if(!$this->showPassword)
- {
- self::asteriskVar($this->value);
- }
- }
- }
|