Renames domain value for users loging with their hruid. Ensures the rigth username...
[platal.git] / templates / platal / password.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2011 Polytechnique.org                             *}
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 <h1>
25   {if t($xnet)}Création du mot de passe{else}Changer de mot de passe{/if}
26 </h1>
27
28 <p>
29   Le mot de passe doit faire au moins <strong>6 caractères</strong> et comporter deux types de
30   caractères parmi les suivants&nbsp;: lettres minuscules, lettres majuscules, chiffres, caractères spéciaux.
31   Attention au type de clavier que tu utilises (qwerty&nbsp;?) et aux majuscules/minuscules.
32 </p>
33 <p>
34   Pour une sécurité optimale, le mot de passe circule de manière chiffrée (https) et est
35   stocké chiffré irréversiblement sur nos serveurs.
36 </p>
37 <br />
38 <fieldset style="width: 70%; margin-left: 15%">
39   <legend>{icon name=lock} Saisie du {if !t($xnet)}nouveau {/if}mot de passe</legend>
40   <form action="{$smarty.server.REQUEST_URI}" method="post" id="login">
41   {xsrf_token_field}
42     <table style="width: 100%">
43       <tr>
44         <td class="titre">
45           Mot de passe&nbsp;:
46         </td>
47         <td>
48           <input type="password" size="10" maxlength="256" name="new1" />
49         </td>
50       </tr>
51       <tr>
52         <td class="titre">
53           Confirmation&nbsp;:
54         </td>
55         <td>
56           <input type="password" size="10" maxlength="256" name="new2" />
57         </td>
58       </tr>
59       <tr>
60         <td class="titre">
61           Sécurité
62         </td>
63         <td>
64           {checkpasswd prompt="new1" submit="submitn"}
65         </td>
66       </tr>
67       <tr>
68         <td>
69           <input type="hidden" name="username" value="{$hruid}" />
70           <input type="hidden" name="password" value="" />
71           <input type="hidden" name="domain" value="hruid" />
72         </td>
73         <td {popup caption='Connexion permanente' width='300' text='Décocher cette case pour que le site oublie ce navigateur.<br />
74           Il est conseillé de décocher la case si cette machine n\'est pas <b>strictement</b> personnelle'} colspan="2">
75           <label><input type="checkbox" name="remember" checked="checked" />
76             Garder l'accès aux services après déconnexion.
77           </label>
78         </td>
79       </tr>
80       <tr>
81         <td colspan="2" class="center">
82           <input type="hidden" name="pwhash" value="" />
83           <input type="submit" value="{if t($xnet)}Créer{else}Changer{/if}" name="submitn" onclick="return hashResponse('new1', 'new2', true, true);" />
84         </td>
85       </tr>
86     </table>
87   </form>
88 </fieldset>
89
90 <form action="{$smarty.server.REQUEST_URI}" method="post" id="loginsub">
91   <div>
92     <input type="hidden" name="challenge" value="{$smarty.session.challenge}" />
93     <input type="hidden" name="username"  value="" />
94     <input type="hidden" name="remember"  value="" />
95     <input type="hidden" name="response"  value="" />
96     <input type="hidden" name="xorpass"   value="" />
97     <input type="hidden" name="domain"    value="" />
98     <input type="hidden" name="auth_type" value="{if t($xnet)}xnet{/if}" />
99     <input type="hidden" name="pwhash"    value="" />
100     {if t($xnet)}<input type="hidden" name="wait" />{/if}
101   </div>
102 </form>
103
104 {if !t($xnet)}
105 <p>
106   Note bien qu'il s'agit là du mot de passe te permettant de t'authentifier sur le site {#globals.core.sitename#}&nbsp;;
107   le mot de passe te permettant d'utiliser le serveur <a
108   href="{"./Xorg/SMTPSécurisé"|urlencode}">SMTP</a>
109   et <a href="{"Xorg/NNTPSécurisé"|urlencode}">NNTP</a>
110   de {#globals.core.sitename#} (si tu as <a href="./password/smtp">activé l'accès SMTP et NNTP</a>)
111   est indépendant de celui-ci et tu peux le modifier <a href="./password/smtp">ici</a>.
112 </p>
113 {/if}
114
115 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}