Changeset 2080 for trunk/LATMOS-Accounts-Web
- Timestamp:
- 09/11/17 18:55:27 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/root/html/users/passwd.tt
r2050 r2080 3 3 4 4 <script type="text/javascript"> 5 function check_passwd( ) {5 function check_passwd(fullcheck) { 6 6 if ($("#passwd").val()) { 7 if ($("#passwd").val() == $("#cpasswd").val() ) {7 if ($("#passwd").val() == $("#cpasswd").val() || fullcheck) { 8 8 $.ajax({ 9 9 url: '[% c.uri_for('/ajax', 'cracklib', username) %]', … … 19 19 } 20 20 } 21 22 $(function () { 23 24 $("#passwd").on( 'keyup', function() { check_passwd(1) }); 25 $("#cpasswd").on('keyup', function() { check_passwd(0) }); 26 27 }); 21 28 </script> 22 29 … … 42 49 <tr> 43 50 <th>Nouveau mot de passe:</th> 44 <td><input type="password" name="passwd" id="passwd" onkeyup="check_passwd()"></td>51 <td><input type="password" name="passwd" id="passwd"></td> 45 52 </tr> 46 53 <tr> 47 54 <th>Confirmation:</th> 48 <td><input type="password" name="cpasswd" id="cpasswd" onkeyup="check_passwd()"></td>55 <td><input type="password" name="cpasswd" id="cpasswd"></td> 49 56 </tr> 50 57 <tr><td colspan="2"><span id="perror">[% pmerror | html %]</span></td></tr>
Note: See TracChangeset
for help on using the changeset viewer.