1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-05 19:55:21 +02:00

Merge pull request #2878 from fwhcat/alt-auth

make database password field non-readable
This commit is contained in:
Cameron 2017-11-19 07:32:24 -08:00 committed by GitHub
commit add44b773a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -280,7 +280,15 @@ class alt_auth_admin extends alt_auth_base
$ret .= "<tr><td$log>".$cf['prompt'];
$ret .= "</td><td$log>";
if ($cf['fieldname'] == 'password')
{
$ret .= $frm->form_password($prefix.'_'.$cf['fieldname'], $cf['size'], $parm[$prefix.'_'.$cf['fieldname']], $cf['max_size']);
}
else
{
$ret .= $frm->form_text($prefix.'_'.$cf['fieldname'], $cf['size'], $parm[$prefix.'_'.$cf['fieldname']], $cf['max_size']);
}
if ($cf['help']) $ret .= "<br /><span class='field-help'>".$cf['help']."</span>";
$ret .= "</td></tr>\n";
}