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

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