Ticket #1484886: InstallerPasswordField.patch

File InstallerPasswordField.patch, 1.1 kB (added by devym, 8 months ago)
  • config.php

     
    198198$input_dbhost = new textfield(array('name' => '_dbhost', 'size' => 20, 'id' => "cfgdbhost")); 
    199199$input_dbname = new textfield(array('name' => '_dbname', 'size' => 20, 'id' => "cfgdbname")); 
    200200$input_dbuser = new textfield(array('name' => '_dbuser', 'size' => 20, 'id' => "cfgdbuser")); 
    201 $input_dbpass = new textfield(array('name' => '_dbpass', 'size' => 20, 'id' => "cfgdbpass")); 
     201$input_dbpass = new passwordfield(array('name' => '_dbpass', 'size' => 20, 'id' => "cfgdbpass")); 
    202202 
    203203$dsnw = DB::parseDSN($RCI->getprop('db_dsnw')); 
    204204 
     
    385385<?php 
    386386 
    387387$text_smtpuser = new textfield(array('name' => '_smtp_user', 'size' => 20, 'id' => "cfgsmtpuser")); 
    388 $text_smtppass = new textfield(array('name' => '_smtp_pass', 'size' => 20, 'id' => "cfgsmtppass")); 
     388$text_smtppass = new passwordfield(array('name' => '_smtp_pass', 'size' => 20, 'id' => "cfgsmtppass")); 
    389389echo $text_smtpuser->show($RCI->getprop('smtp_user')); 
    390390echo $text_smtppass->show($RCI->getprop('smtp_pass')); 
    391391