Skip to content

Commit

Permalink
Remove TOTP 'Enter' key submission.
Browse files Browse the repository at this point in the history
No longer needed as of two-factor v0.8.0.

See WordPress/two-factor#518
  • Loading branch information
r-a-y committed Aug 15, 2024
1 parent e7f0da9 commit be0d830
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions assets/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ jQuery(function($){
}
} );

// Allow 'Enter' key to submit TOTP auth code.
$('#two-factor-totp-authcode').keypress(function(e) {
if (13 === e.which) {
$('input["name=two-factor-totp-submit"]').focus().click();
return false;
}
});

// Eek. Inject strings and other stuff.
$securityKeys.find( '.register-security-key' ).prepend( bp2fa.security_key_desc );
$securityKeysWebAuthn.find( '.add-webauthn-key' ).prepend( bp2fa.security_key_webauthn_desc );
Expand Down

0 comments on commit be0d830

Please sign in to comment.