Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
179afa7f | 3 | {* Copyright (C) 2003-2008 Polytechnique.org *} |
0337d704 | 4 | {* http://opensource.polytechnique.org/ *} |
5 | {* *} | |
6 | {* This program is free software; you can redistribute it and/or modify *} | |
7 | {* it under the terms of the GNU General Public License as published by *} | |
8 | {* the Free Software Foundation; either version 2 of the License, or *} | |
9 | {* (at your option) any later version. *} | |
10 | {* *} | |
11 | {* This program is distributed in the hope that it will be useful, *} | |
12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} | |
13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} | |
14 | {* GNU General Public License for more details. *} | |
15 | {* *} | |
16 | {* You should have received a copy of the GNU General Public License *} | |
17 | {* along with this program; if not, write to the Free Software *} | |
18 | {* Foundation, Inc., *} | |
19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} | |
20 | {* *} | |
21 | {**************************************************************************} | |
22 | ||
23 | ||
24 | <div class="center"> | |
25 | <table> | |
26 | <tr> | |
27 | <td> | |
0338ba2e | 28 | {icon name=error} |
0337d704 | 29 | </td> |
30 | <td> | |
31 | <span class="smaller"> | |
32 | <strong> | |
a7de4ef7 | 33 | Pour des raisons de <span class="erreur">sécurité</span>, il est obligatoire de taper ton mot de passe, même |
34 | avec l'accès permanent, pour certaines opérations sensibles. | |
0337d704 | 35 | </strong> |
36 | </span> | |
37 | </td> | |
0338ba2e | 38 | <td> |
39 | {icon name=error} | |
40 | </td> | |
0337d704 | 41 | </tr> |
42 | </table> | |
43 | </div> | |
0338ba2e | 44 | <br /> |
0337d704 | 45 | |
46 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit='doChallengeResponse(); return false;'> | |
47 | <table class="tinybicol" cellpadding="4" summary="Formulaire de login"> | |
48 | <tr> | |
49 | <td class="titre"> | |
661e78f7 | 50 | Mot de passe : |
0337d704 | 51 | </td> |
52 | <td> | |
2b18a8ff | 53 | <input type="password" name="password" size="10" maxlength="256" /> |
841ff7e7 | 54 | <a href="recovery">Perdu ?</a> |
0338ba2e | 55 | </td> |
56 | <td class="right" rowspan="2" style="vertical-align: middle"> | |
57 | <input type="submit" name="submitbtn" value="Envoyer" /> | |
0337d704 | 58 | </td> |
59 | </tr> | |
60 | <tr> | |
fba760d2 | 61 | <td {popup caption='Connexion permanente' width='300' text='Décoche cette case pour que le site oublie ce navigateur.<br /> |
62 | Il est conseillé de décocher la case si cette machine n\'est pas <b>strictement</b> personnelle'} colspan="2"> | |
a44f405e SJ |
63 | <label><input type="checkbox" name="remember" checked="checked" /> |
64 | Garder l'accès aux services après déconnexion.</label> | |
0337d704 | 65 | </td> |
66 | </tr> | |
0337d704 | 67 | </table> |
68 | </form> | |
69 | <br /> | |
70 | {if $smarty.request.response}<!-- failed login code --> | |
ff996dd2 | 71 | {include core=triggers.tpl text="Erreur d'identification. Essaie à nouveau !" type="errors"} |
0337d704 | 72 | {/if} |
73 | ||
74 | <!-- Set up the form with the challenge value and an empty reply value --> | |
75 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub"> | |
76 | <div> | |
839a80cf | 77 | {xsrf_token_field} |
cab08090 | 78 | <input type="hidden" name="challenge" value="{$smarty.session.challenge}" /> |
0337d704 | 79 | <input type="hidden" name="username" value="{$smarty.cookies.ORGuid}" /> |
46bde4d1 | 80 | <input type="hidden" name="xorpass" value="" /> |
0337d704 | 81 | <input type="hidden" name="remember" value="" /> |
82 | <input type="hidden" name="response" value="" /> | |
83 | </div> | |
84 | </form> | |
85 | ||
86 | {literal} | |
87 | <script type="text/javascript"> | |
88 | <!-- | |
89 | // Activate the appropriate input form field. | |
90 | document.forms.login.password.focus(); | |
91 | // --> | |
92 | </script> | |
93 | {/literal} | |
94 | ||
a7de4ef7 | 95 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |