diff --git a/htdocs/core/tpl/login.tpl.php b/htdocs/core/tpl/login.tpl.php index 7f4d8b76cf1a3049b26446c761d14470c571094c..586b8b645c937e519e70f0b868b18af168ab7160 100644 --- a/htdocs/core/tpl/login.tpl.php +++ b/htdocs/core/tpl/login.tpl.php @@ -103,7 +103,7 @@ $(document).ready(function () { <tr> <td valign="bottom"> <strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong> </td> <td valign="bottom" nowrap="nowrap"> -<input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag(GETPOST('username')?GETPOST('username'):$login); ?>" tabindex="1" /> +<input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" /> </td> </tr> diff --git a/htdocs/theme/bureau2crea/tpl/login.tpl.php b/htdocs/theme/bureau2crea/tpl/login.tpl.php index 8fa722dac33c4d758a55b8ed7c7218e0f523a58e..27a4ea87adfc2c3ca268cc510fdc304179410183 100644 --- a/htdocs/theme/bureau2crea/tpl/login.tpl.php +++ b/htdocs/theme/bureau2crea/tpl/login.tpl.php @@ -109,7 +109,7 @@ $(document).ready(function () { <div id="parameterBox"> -<div id="logBox"><strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong><input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag(GETPOST('username')?GETPOST('username'):$login); ?>" tabindex="1" /></div> +<div id="logBox"><strong><label for="username"><?php echo $langs->trans('Login'); ?></label></strong><input type="text" id="username" name="username" class="flat" size="15" maxlength="40" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" /></div> <div id="passBox"><strong><label for="password"><?php echo $langs->trans('Password'); ?></label></strong><input id="password" name="password" class="flat" type="password" size="15" maxlength="30" value="<?php echo dol_escape_htmltag($password); ?>" tabindex="2" /></div> <?php @@ -209,4 +209,4 @@ $(document).ready(function () { </body> </html> -<!-- END PHP TEMPLATE --> \ No newline at end of file +<!-- END PHP TEMPLATE -->