Changeset 421 for trunk/services


Ignore:
Timestamp:
Jul 8, 2013 4:31:19 PM (11 years ago)
Author:
anonymous
Message:

Added switch for login_form_allow_autocomplete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/services/templates/login_form.ihtml

    r385 r421  
    1 <form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" class="sc-form" autocomplete="off">
     1<?php
     2$autocomplete = $auth->getParam('login_form_allow_autocomplete') ? '' : ' autocomplete="off"';
     3?>
     4<form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" class="sc-form"<?php echo $autocomplete; ?>>
    25<?php $app->printHiddenSession() ?>
    36<table>
     
    1114        <td class="sc-right"><label for="password"><?php echo _("Password"); ?></label></td>
    1215        <td>
    13             <input type="password" class="sc-small" size="20" name="password" value="" autocomplete="off" />
     16            <input type="password" class="sc-small" size="20" name="password" value=""<?php echo $autocomplete; ?> />
    1417        </td>
    1518    </tr>
Note: See TracChangeset for help on using the changeset viewer.