Skip to content

Commit

Permalink
Ensure password field is enabled when switching to u/p from SSO form
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityrail committed Oct 7, 2019
1 parent e91efae commit 817ea34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/sso/jetpack-sso-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ jQuery( document ).ready( function( $ ) {
var body = $( 'body' ),
toggleSSO = $( '.jetpack-sso-toggle' ),
userLogin = $( '#user_login' ),
userPassword = $( '#user_pass' ),
ssoWrap = $( '#jetpack-sso-wrap' ),
loginForm = $( '#loginform' ),
overflow = $( '<div class="jetpack-sso-clear"></div>' );
Expand All @@ -27,6 +28,7 @@ jQuery( document ).ready( function( $ ) {
body.toggleClass( 'jetpack-sso-form-display' );
if ( ! body.hasClass( 'jetpack-sso-form-display' ) ) {
userLogin.focus();
userPassword.prop( 'disabled', false );
}
} );
} );

0 comments on commit 817ea34

Please sign in to comment.