function doChallengeResponse() {
- str = document.login.username.value + ":" +
- MD5(document.login.password.value) + ":" +
- document.loginsub.challenge.value;
+ str = document.forms.login.username.value + ":" +
+ MD5(document.forms.login.password.value) + ":" +
+ document.forms.loginsub.challenge.value;
- document.loginsub.response.value = MD5(str);
- document.loginsub.username.value = document.login.username.value;
- document.login.password.value = "";
- document.loginsub.submit();
+ document.forms.loginsub.response.value = MD5(str);
+ document.forms.loginsub.username.value = document.forms.login.username.value;
+ document.forms.login.password.value = "";
+ document.forms.loginsub.submit();
}
-{* $Id: password_prompt.tpl,v 1.15 2004-08-24 22:57:20 x2000habouzit Exp $ *}
+{* $Id: password_prompt.tpl,v 1.16 2004-08-25 09:33:30 x2000habouzit Exp $ *}
<noscript>
<p class="erreur">
Ton navigateur n'accepte pas le javaScript !!
<br />
-<form action="{$smarty.server.REQUEST_URI}" method="post" name="login" onsubmit="doChallengeResponse(); return false;">
+<form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit="doChallengeResponse(); return false;">
<table class="tinybicol" cellpadding="4" summary="Formulaire de login">
<tr>
<th colspan="2">Connexion</th>
{/if}
<!-- Set up the form with the challenge value and an empty reply value //-->
-<form action="{$smarty.server.REQUEST_URI}" method="post" name="loginsub">
+<form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub">
<div>
<input type="hidden" name="challenge" value="{$smarty.session.session->challenge}" />
<input type="hidden" name="response" value="" />
<script type="text/javascript">
<!--
// Activate the appropriate input form field.
- if (document.login.username.value == '') {
- document.login.username.focus();
- } else {
- document.login.password.focus();
+ login = document.getElementById('login');
+ if (document.forms.login.username.value == '') {
+ document.forms.login.username.focus();
+ } else {
+ document.forms.login.password.focus();
}
// -->
</script>
-{* $Id: password_prompt_logged.head.tpl,v 1.6 2004-08-24 22:57:20 x2000habouzit Exp $ *}
+{* $Id: password_prompt_logged.head.tpl,v 1.7 2004-08-25 09:33:30 x2000habouzit Exp $ *}
<script src="{"javascript/md5.js"|url}" type="text/javascript"></script>
<script type="text/javascript">//<![PCDATA[
<!--
function doChallengeResponse() {ldelim}
str = "{$smarty.cookies.ORGlogin}:" +
- MD5(document.login.password.value) + ":" +
- document.loginsub.challenge.value;
+ MD5(document.forms.login.password.value) + ":" +
+ document.forms.loginsub.challenge.value;
- document.loginsub.response.value = MD5(str);
- document.login.password.value = "";
- document.loginsub.submit();
+ document.forms.loginsub.response.value = MD5(str);
+ document.forms.login.password.value = "";
+ document.forms.loginsub.submit();
{rdelim}
//]]>
</script>
-{* $Id: password_prompt_logged.tpl,v 1.10 2004-02-12 02:03:08 x2000habouzit Exp $ *}
+{* $Id: password_prompt_logged.tpl,v 1.11 2004-08-25 09:33:30 x2000habouzit Exp $ *}
<div class="center">
<table summary="Accès sécurisé" style="width: 90%;">
</table>
</div>
<br /><br />
-<form action="{$smarty.server.REQUEST_URI}" method="post" id="login" name="login" onsubmit='doChallengeResponse(); return false;'>
+<form action="{$smarty.server.REQUEST_URI}" method="post" id="login" id="login" onsubmit='doChallengeResponse(); return false;'>
<table class="tinybicol" cellpadding="4" summary="Formulaire de login">
<tr>
<td class="titre">
{/if}
<!-- Set up the form with the challenge value and an empty reply value -->
-<form action="{$smarty.server.REQUEST_URI}" method="post" name="loginsub">
+<form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub">
<div>
<input type="hidden" name="challenge" value="{$smarty.session.session->challenge}" />
<input type="hidden" name="username" value="{$smarty.cookies.ORGlogin}" />
<script type="text/javascript">
<!--
// Activate the appropriate input form field.
- document.login.password.focus();
+ document.forms.login.password.focus();
// -->
</script>
{/literal}