diff --git a/htdocs/core/tpl/passwordforgotten.tpl.php b/htdocs/core/tpl/passwordforgotten.tpl.php index ea03749e0c3a0d68c5e768b4068682627034357b..f6a076660d888d5305ca847d7391ac47eb8d2855 100644 --- a/htdocs/core/tpl/passwordforgotten.tpl.php +++ b/htdocs/core/tpl/passwordforgotten.tpl.php @@ -48,7 +48,7 @@ $(document).ready(function () { <div class="login_vertical_align"> -<form id="login" name="login" method="post" action="<?php echo $php_self; ?>"> +<form id="login" name="login" method="POST" action="<?php echo $php_self; ?>"> <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>"> <input type="hidden" name="action" value="buildnewpassword"> @@ -77,7 +77,7 @@ $(document).ready(function () { <tr> <td valign="bottom" class="nowrap center"> <span class="span-icon-user"> -<input type="text" placeholder="<?php echo $langs->trans("Login"); ?>" <?php echo $disabled; ?> id="username" name="username" class="flat input-icon-user" size="20" value="<?php echo dol_escape_htmltag($login); ?>" tabindex="1" /> +<input type="text" placeholder="<?php echo $langs->trans("Login"); ?>" <?php echo $disabled; ?> id="username" name="username" class="flat input-icon-user" size="20" value="<?php echo dol_escape_htmltag($username); ?>" tabindex="1" /> </span> </td> </tr> diff --git a/htdocs/user/passwordforgotten.php b/htdocs/user/passwordforgotten.php index 44377f6168c8afbef7500d3a16f49d2975209994..cb38d1c9e495daf7852c87c948b8ff17876093f2 100644 --- a/htdocs/user/passwordforgotten.php +++ b/htdocs/user/passwordforgotten.php @@ -2,7 +2,7 @@ /* Copyright (C) 2007-2011 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2008-2012 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2008-2011 Juanjo Menent <jmenent@2byte.es> - * Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com> + * Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by