Changeset 33475
- Timestamp:
- 07/29/2015 04:29:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/user-profile.js
r33473 r33475 179 179 $passwordWrapper.show(); 180 180 181 generatePassword(); 181 if ( $pass1Text.val().length === 0 ) { 182 generatePassword(); 183 } 182 184 183 185 _.defer( function() { … … 206 208 207 209 function check_pass_strength() { 208 var pass1 = $('#pass1').val(), pass2 = $('#pass2').val(),strength;210 var pass1 = $('#pass1').val(), strength; 209 211 210 212 $('#pass-strength-result').removeClass('short bad good strong'); … … 214 216 } 215 217 216 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass 2);218 strength = wp.passwordStrength.meter( pass1, wp.passwordStrength.userInputBlacklist(), pass1 ); 217 219 218 220 switch ( strength ) {
Note: See TracChangeset
for help on using the changeset viewer.