Commit | Line | Data |
---|---|---|
0337d704 | 1 | {**************************************************************************} |
2 | {* *} | |
5e1513f6 | 3 | {* Copyright (C) 2003-2011 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 | ||
f7a93ff3 | 23 | {if t($external_auth) || $platal->pl_self() neq 'login'} |
f9544023 | 24 | <h1> |
a7de4ef7 | 25 | Accès restreint |
f9544023 | 26 | </h1> |
27 | <p> | |
28 | Bonjour,<br /> | |
6cce7840 RB |
29 | {if t($group)} |
30 | le site du groupe {$group} | |
31 | {else} | |
32 | la page que vous avez demandée | |
33 | {/if} | |
784e89ec | 34 | (<strong>{if t($external_auth)}{$ext_url|truncate:120:"...":false}{else}{$globals->baseurl}/{$platal->pl_self()}{/if}</strong>) |
a7de4ef7 | 35 | nécessite une authentification. |
f9544023 | 36 | </p> |
37 | {else} | |
0337d704 | 38 | <h1> |
a7de4ef7 | 39 | Accès réservé aux polytechniciens |
0337d704 | 40 | </h1> |
f9544023 | 41 | {/if} |
0337d704 | 42 | |
1f6a041e | 43 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="login" onsubmit="doChallengeResponse(); return false;" style="display: none"> |
0337d704 | 44 | <table class="bicol" cellpadding="4" summary="Formulaire de login"> |
45 | <tr> | |
6c85148b | 46 | <th colspan="2">{if $smarty.server.HTTPS}{icon name=lock}{/if} Identification |
01ad3b74 | 47 | {if !$smarty.server.HTTPS && #globals.core.secure_domain#} |
48 | (<a href="https://{#globals.core.secure_domain#}{$smarty.server.REQUEST_URI}">{icon name=lock_add} Passer en connexion sécurisée</a>) | |
6c85148b | 49 | {/if} |
50 | </th> | |
0337d704 | 51 | </tr> |
52 | <tr style="white-space: nowrap"> | |
53 | <td class="titre"> | |
6cce7840 | 54 | Identifiant ou email : |
0337d704 | 55 | </td> |
56 | <td> | |
6cce7840 | 57 | <input type="text" name="username" size="40" maxlength="100" value="{insert name="getUserName"}" /> |
0337d704 | 58 | </td> |
59 | </tr> | |
60 | <tr> | |
61 | <td class="titre"> | |
661e78f7 | 62 | Mot de passe : |
0337d704 | 63 | </td> |
64 | <td> | |
2b18a8ff | 65 | <input type="password" name="password" size="10" maxlength="256" /> |
0337d704 | 66 | </td> |
67 | </tr> | |
68 | <tr> | |
69 | <td></td> | |
4d2d6d18 | 70 | <td> |
e879d10b PC |
71 | <script type="text/javascript">{literal} |
72 | function confirm_remember(input) { | |
73 | if (input.checked && !confirm('Cocher cette case te permet d\'être automatiquement reconnu à ta prochaine connexion depuis cet ordinateur. ' | |
74 | + 'Il n\'est pas conseillé de cocher la case si cette machine n\'est pas strictement personnelle.\n\nVeux-tu vraiment cocher cette case ?')) { | |
75 | input.checked = false; | |
8e382664 | 76 | return false; |
e879d10b | 77 | } |
8e382664 | 78 | return true; |
e879d10b PC |
79 | } |
80 | {/literal}</script> | |
661e78f7 | 81 | <input type="checkbox" name="remember" id="remember" onchange="return confirm_remember(this);" /><label for="remember">Garder l'accès aux services après déconnexion.</label> |
4d2d6d18 OLF |
82 | </td> |
83 | </tr> | |
84 | <tr> | |
0337d704 | 85 | <td colspan="2"> |
a88f005d RB |
86 | <span style="float: left"> |
87 | Mot de passe perdu : | |
88 | <a href="recovery">Étudiants et diplômés de l'X</a> | | |
89 | <a href="recovery/ext">Extérieurs</a> | |
90 | </span> | |
91 | ||
4ed7a2fd | 92 | <input type="submit" name="submitbtn" value="Me connecter" style="float: right" /> |
0337d704 | 93 | </td> |
94 | </tr> | |
95 | </table> | |
96 | </form> | |
1f6a041e | 97 | |
e879d10b PC |
98 | {if !$smarty.session.auth} |
99 | <p> | |
6bb2f79a | 100 | <strong>Tu ne connais pas ton mot de passe ?</strong> |
e879d10b | 101 | </p> |
e879d10b | 102 | Si tu n'es jamais venu sur le site, <strong>il faut t'enregistrer auprès de |
faefdbb7 | 103 | nous</strong> pour obtenir un accès. {#globals.core.sitename#} c'est l'email des X, |
e879d10b PC |
104 | l'annuaire en ligne, plus un tas d'autres services. Nous te fournirons un accès le plus |
105 | rapidement possible. <strong> <a href="register/">Clique ici pour nous demander tes | |
106 | paramètres personnels.</a></strong> | |
e879d10b PC |
107 | {/if} |
108 | ||
1f6a041e | 109 | <div id="nologin" style="background: #fcc; color: red"> |
a7de4ef7 | 110 | Pour assurer la confidentialité de ton mot de passe, il est chiffré sur ta machine |
111 | avant de nous être transmis. Pour cela, il faut | |
1f6a041e | 112 | <a href="Xorg/FAQ?display=light#connect" class="popup2">activer javascript</a> |
113 | dans ton navigateur, ce qui n'est actuellement pas le cas. | |
114 | <div class="center" style="margin-top: 1ex"> | |
115 | <strong>Active le javascript et recharge cette page pour pouvoir te connecter.</strong> | |
116 | </div> | |
117 | </div> | |
118 | ||
7118c4c2 | 119 | <p> |
6bb2f79a | 120 | <strong>Problème de connexion ?</strong> <a href="Xorg/FAQ?display=light#connect" class="popup2">La réponse est là.</a> |
e879d10b PC |
121 | </p> |
122 | ||
1f6a041e | 123 | <script type="text/javascript"> |
124 | document.getElementById('login').style.display=""; | |
125 | document.getElementById('nologin').style.display="none"; | |
126 | </script> | |
0337d704 | 127 | |
6c85148b | 128 | <hr /> |
129 | ||
130 | <div class="smaller"> | |
131 | {if $smarty.server.HTTPS} | |
a7de4ef7 | 132 | {icon name=lock} Tu utilises actuellement une connexion HTTPS sécurisée. Aucune information ne circule |
133 | en clair entre chez toi et Polytechnique.org, ce qui assure une confidentialité maximale. | |
6c85148b | 134 | {else} |
a7de4ef7 | 135 | {icon name=lock_open} Tu utilises actuellement une connexion HTTP non sécurisée. Toutes les informations |
aab2ffdd | 136 | (<strong>excepté le mot de passe de connexion au site</strong>) circulent en clair entre chez toi et |
a7de4ef7 | 137 | Polytechnique.org. Tu peux basculer sur une connexion sécurisée en cliquant sur le lien |
6c85148b | 138 | <div class="center"> |
b277fbe5 | 139 | <a href="https://{#globals.core.secure_domain#}{$smarty.server.REQUEST_URI}"> |
a7de4ef7 | 140 | {icon name=lock_add} Passer en connexion sécurisée</a> |
6c85148b | 141 | </div><br /> |
a7de4ef7 | 142 | Plus d'informations sur la connexion sécurisée se trouvent |
143 | <a href="Xorg/CertificatDeSécurité?display=light" class="popup2">sur cette page</a>. | |
6c85148b | 144 | {/if} |
145 | </div> | |
146 | ||
0337d704 | 147 | <!-- Set up the form with the challenge value and an empty reply value //--> |
148 | <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub"> | |
149 | <div> | |
a726ed6e | 150 | {xsrf_token_field} |
cab08090 | 151 | <input type="hidden" name="challenge" value="{$smarty.session.challenge}" /> |
0337d704 | 152 | <input type="hidden" name="response" value="" /> |
6bb2f79a | 153 | <input type="hidden" name="xorpass" value="" /> |
0337d704 | 154 | <input type="hidden" name="username" value="" /> |
155 | <input type="hidden" name="remember" value="" /> | |
f7a93ff3 RB |
156 | {if t($external_auth)} |
157 | <input type="hidden" name="external_auth" value="1" /> | |
158 | {/if} | |
0337d704 | 159 | </div> |
160 | </form> | |
161 | ||
162 | {literal} | |
163 | <script type="text/javascript"> | |
164 | <!-- | |
165 | // Activate the appropriate input form field. | |
166 | if (document.forms.login.username.value == '') { | |
167 | document.forms.login.username.focus(); | |
168 | } else { | |
169 | document.forms.login.password.focus(); | |
170 | } | |
171 | // --> | |
172 | </script> | |
173 | {/literal} | |
174 | ||
a7de4ef7 | 175 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |