Merge branch 'ent-3437-Guardar-user-password-modulos-WMI' into 'develop'
Remove autocomplete user and password in the form to create wmi modules - #3437 See merge request artica/pandorafms!2485
This commit is contained in:
commit
1305e267de
|
@ -83,8 +83,8 @@ $data[3] = html_print_input_password(
|
||||||
true,
|
true,
|
||||||
$disabledBecauseInPolicy,
|
$disabledBecauseInPolicy,
|
||||||
false,
|
false,
|
||||||
'',
|
$classdisabledBecauseInPolicy,
|
||||||
$classdisabledBecauseInPolicy
|
'new-password'
|
||||||
);
|
);
|
||||||
|
|
||||||
push_table_simple($data, 'user_pass');
|
push_table_simple($data, 'user_pass');
|
||||||
|
|
|
@ -1233,7 +1233,7 @@ function html_print_extended_select_for_cron($hour='*', $minute='*', $mday='*',
|
||||||
*
|
*
|
||||||
* @return string HTML code if return parameter is true.
|
* @return string HTML code if return parameter is true.
|
||||||
*/
|
*/
|
||||||
function html_print_input_text_extended($name, $value, $id, $alt, $size, $maxlength, $disabled, $script, $attributes, $return=false, $password=false, $function='')
|
function html_print_input_text_extended($name, $value, $id, $alt, $size, $maxlength, $disabled, $script, $attributes, $return=false, $password=false, $function='', $autocomplete='off')
|
||||||
{
|
{
|
||||||
static $idcounter = 0;
|
static $idcounter = 0;
|
||||||
|
|
||||||
|
@ -1283,7 +1283,7 @@ function html_print_input_text_extended($name, $value, $id, $alt, $size, $maxlen
|
||||||
'autocomplete',
|
'autocomplete',
|
||||||
];
|
];
|
||||||
|
|
||||||
$output = '<input '.($password ? 'type="password" autocomplete="off" ' : 'type="text" ');
|
$output = '<input '.($password ? 'type="password" autocomplete="'.$autocomplete.'" ' : 'type="text" ');
|
||||||
|
|
||||||
if ($disabled && (!is_array($attributes) || !array_key_exists('disabled', $attributes))) {
|
if ($disabled && (!is_array($attributes) || !array_key_exists('disabled', $attributes))) {
|
||||||
$output .= 'readonly="readonly" ';
|
$output .= 'readonly="readonly" ';
|
||||||
|
@ -1435,7 +1435,8 @@ function html_print_input_password(
|
||||||
$return=false,
|
$return=false,
|
||||||
$disabled=false,
|
$disabled=false,
|
||||||
$required=false,
|
$required=false,
|
||||||
$class=''
|
$class='',
|
||||||
|
$autocomplete='off'
|
||||||
) {
|
) {
|
||||||
if ($maxlength == 0) {
|
if ($maxlength == 0) {
|
||||||
$maxlength = 255;
|
$maxlength = 255;
|
||||||
|
@ -1454,7 +1455,7 @@ function html_print_input_password(
|
||||||
$attr['class'] = $class;
|
$attr['class'] = $class;
|
||||||
}
|
}
|
||||||
|
|
||||||
return html_print_input_text_extended($name, $value, 'password-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, true);
|
return html_print_input_text_extended($name, $value, 'password-'.$name, $alt, $size, $maxlength, $disabled, '', $attr, $return, true, '', $autocomplete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue