Login: Avoid AJAX error on login screen.

This has to do with the password generator, which does not need to generate and cache passwords in JS as that's already done in PHP.

Props adamsilverstein, sarahricker.
Fixes #51613.


git-svn-id: https://develop.svn.wordpress.org/trunk@49337 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2020-10-27 18:41:32 +00:00
parent 18f172556d
commit f293ae18b2

View File

@ -146,13 +146,6 @@
bindToggleButton();
// Generate the first password and cache it, but don't set it yet.
wp.ajax.post( 'generate-password' )
.done( function( data ) {
// Cache password.
$pass1.data( 'pw', data );
} );
$generateButton.show();
$generateButton.on( 'click', function () {
updateLock = true;