patch from int on irc - if $CONF[show_passwords] then do so

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@482 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 852edf88c6
commit 8cc2b74a64

@ -20,6 +20,7 @@
*
* tMessage
* tName
* tPassword
* tQuota
*
* Form POST \ GET Variables:
@ -75,7 +76,11 @@ if ($_SERVER['REQUEST_METHOD'] == "GET")
if ('pgsql'==$CONF['database_type']) {
$tActive = ('t'==$user_details['active']) ? 1 : 0;
}
$tPassword = '';
if ($CONF['show_password'] == "YES")
{
$tPassword = $user_details['password'];
}
$result = db_query ("SELECT * FROM $table_domain WHERE domain='$fDomain'");
if ($result['rows'] == 1)
{

@ -12,7 +12,7 @@
</tr>
<tr>
<td><?php print $PALANG['pEdit_mailbox_password'] . ":"; ?></td>
<td><input class="flat" type="password" name="fPassword" /></td>
<td><input class="flat" type="password" name="fPassword" value="<?php print htmlspecialchars ($tPassword,ENT_QUOTES); ?>"/></td>
<td><?php print $pEdit_mailbox_password_text; ?></td>
</tr>
<tr>

Loading…
Cancel
Save