diff --git a/providers/class-two-factor-totp.php b/providers/class-two-factor-totp.php index 88831185..7923302c 100644 --- a/providers/class-two-factor-totp.php +++ b/providers/class-two-factor-totp.php @@ -392,10 +392,10 @@ public function user_two_factor_options( $user ) { $error.find('p').text( errorMessage ); - $( '#enabled-Two_Factor_Totp' ).prop( 'checked', false ); + $( '#enabled-Two_Factor_Totp' ).prop( 'checked', false ).trigger('change'); $('#two-factor-totp-authcode').val(''); } ).then( function( response ) { - $( '#enabled-Two_Factor_Totp' ).prop( 'checked', true ); + $( '#enabled-Two_Factor_Totp' ).prop( 'checked', true ).trigger('change'); $( '#two-factor-totp-options' ).html( response.html ); } ); } );