Passwords: Hide weak password confirmation checkbox when password strength improves.
Props subharanjan for initial patch. Fixes #34950. git-svn-id: https://develop.svn.wordpress.org/trunk@35870 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
eaa8863723
commit
410aa27b1d
@ -251,6 +251,10 @@
|
||||
$generateButton.show();
|
||||
$passwordWrapper.hide();
|
||||
|
||||
$weakRow.hide( 0, function () {
|
||||
$weakCheckbox.removeProp( 'checked' );
|
||||
} );
|
||||
|
||||
// Disable the inputs when hiding to prevent autofill and submission.
|
||||
$pass1.prop( 'disabled', true );
|
||||
$pass2.prop( 'disabled', true );
|
||||
|
Loading…
x
Reference in New Issue
Block a user