source: LATMOS-Accounts-Web/root/html/users/passwd.tt @ 629

Last change on this file since 629 was 629, checked in by nanardon, 14 years ago
  • improve password form
  • Property svn:keywords set to Id Rev
File size: 773 bytes
Line 
1<!-- $Id$ -->
2<div id="objectform" class="objectform">
3[% INCLUDE 'users/menu.tt' %]
4
5<div id="oform">
6[% IF c.model('Accounts').db.check_acl(user, 'userPassword', 'w') %]
7<form id="fpasswd" action="[% c.uri_for(username, subform) %]" method="POST">
8[% c.prototype.observe_form('fpasswd', {
9    url => c.uri_for('/ajax', 'cracklib', username),
10    update => 'perror',
11    frequency => 1,
12}) %]
13<table border="1">
14<tr>
15<th>Nouveau mot de passe:</th>
16<td><input type="password" name="passwd"></td>
17</tr>
18<tr>
19<th>Confirmation:</th>
20<td><input type="password" name="cpasswd"></td>
21</tr>
22<tr><td colspan="2"><span id="perror">[% pmerror | html %]</span></td></tr>
23</table>
24</form>
25[% ELSE %]
26<p>Vous n'avez pas les droits de changer ce mot de passe</p>
27[% END %]
28</div>
29</div>
Note: See TracBrowser for help on using the repository browser.