Passwords: fix the markup on the Reset Password Form for user-pass1
so the JavaScript operates properly.
Props ldinclaux. See #33892. Fixes #33908. git-svn-id: https://develop.svn.wordpress.org/trunk@34371 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f9d1856805
commit
8a33422bfc
@ -190,11 +190,16 @@
|
|||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$passwordWrapper = $pass1Row.find('.wp-pwd').hide();
|
$passwordWrapper = $pass1Row.find( '.wp-pwd' );
|
||||||
|
$generateButton = $pass1Row.find( 'button.wp-generate-pw' );
|
||||||
|
|
||||||
bindToggleButton();
|
bindToggleButton();
|
||||||
|
|
||||||
$generateButton = $pass1Row.find( 'button.wp-generate-pw' ).show();
|
if ( $generateButton.length ) {
|
||||||
|
$passwordWrapper.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
$generateButton.show();
|
||||||
$generateButton.on( 'click', function () {
|
$generateButton.on( 'click', function () {
|
||||||
updateLock = true;
|
updateLock = true;
|
||||||
|
|
||||||
|
@ -652,15 +652,17 @@ case 'rp' :
|
|||||||
<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
|
<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=resetpass', 'login_post' ) ); ?>" method="post" autocomplete="off">
|
||||||
<input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
|
<input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
|
||||||
|
|
||||||
<p class="user-pass1-wrap">
|
<div class="user-pass1-wrap">
|
||||||
<label for="pass1"><?php _e( 'New password' ) ?></label>
|
<p>
|
||||||
</p>
|
<label for="pass1"><?php _e( 'New password' ) ?></label>
|
||||||
|
</p>
|
||||||
|
|
||||||
<div class="wp-pwd">
|
<div class="wp-pwd">
|
||||||
<span class="password-input-wrapper">
|
<span class="password-input-wrapper">
|
||||||
<input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
|
<input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input" size="20" value="" autocomplete="off" aria-describedby="pass-strength-result" />
|
||||||
</span>
|
</span>
|
||||||
<div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
|
<div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="user-pass2-wrap">
|
<p class="user-pass2-wrap">
|
||||||
|
Loading…
Reference in New Issue
Block a user