Changeset 861 for LATMOS-Accounts-Web/root/html/users/passwd.tt
- Timestamp:
- 12/02/11 11:42:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/root/html/users/passwd.tt
r667 r861 3 3 [% INCLUDE 'users/menu.tt' %] 4 4 5 <script type="text/javascript"> 6 function check_passwd() { 7 new Ajax.Updater( 8 'perror', 9 '[% c.uri_for('/ajax', 'cracklib', username) %]', 10 { parameters: 'passwd=' + document.getElementById("passwd").value + 11 '&cpasswd=' + document.getElementById("cpasswd").value } 12 ) 13 } 14 </script> 15 5 16 <div id="oform"> 6 17 [% IF c.model('Accounts').db.check_acl(user, 'userPassword', 'w') %] 7 18 <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 19 <table border="1"> 14 20 <tr> 15 21 <th>Nouveau mot de passe:</th> 16 <td><input type="password" name="passwd" ></td>22 <td><input type="password" name="passwd" id="passwd" onkeyup="check_passwd()"></td> 17 23 </tr> 18 24 <tr> 19 25 <th>Confirmation:</th> 20 <td><input type="password" name="cpasswd" ></td>26 <td><input type="password" name="cpasswd" id="cpasswd" onkeyup="check_passwd()"></td> 21 27 </tr> 22 28 <tr><td colspan="2"><span id="perror">[% pmerror | html %]</span></td></tr>
Note: See TracChangeset
for help on using the changeset viewer.