1 <script type="text/javascript" src="{$md5}"></script>
3 <script type="text/javascript">
5 function doChallengeResponse() {
6 str = document.getElementById('main_login').value + ":" +
7 MD5(document.getElementById('main_password').value) + ":" +
8 document.getElementById('sub_challenge').value;
10 document.getElementById('sub_response').value = MD5(str);
11 document.getElementById('sub_login').value = document.getElementById('main_login').value;
12 document.getElementById('main_password').value = "";
13 document.getElementById('sub_form').submit();
19 <form method="post" action="{$post}" onsubmit="doChallengeResponse(); return false;">
22 <th colspan="2">{$msg_connexion}</th>
25 <td>{$msg_username}</td>
26 <td><input type="text" id="main_login" name="login" value="{$username}" /></td>
29 <td>{$msg_password}</td>
30 <td><input type="password" id="main_password" name="password" /></td>
34 <td><input type="submit" value="{$msg_submit}"/></td>
39 <!-- Set up the form with the challenge value and an empty reply value //-->
40 <form method="post" action="{$post}" id="sub_form">
41 <input type="hidden" id="sub_challenge" name="challenge" value="{$challenge}" />
42 <input type="hidden" id="sub_response" name="response" value="" />
43 <input type="hidden" id="sub_login" name="login" value="" />
46 <script type="text/javascript">
48 // Activate the appropriate input form field.
51 document.loginmain.password.focus();
55 document.loginmain.login.focus();