Skip to content

Commit

Permalink
Remove unnecessary console.log (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme authored and kasparsd committed Nov 28, 2018
1 parent 4315c90 commit f33778a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 0 additions & 4 deletions providers/js/fido-u2f-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
return false;
}

window.console.log( 'sign', u2fL10n.register.request );

$( this ).prop( 'disabled', true );
$( '.register-security-key .spinner' ).addClass( 'is-active' );
$statusNotice.text( '' );
Expand All @@ -31,8 +29,6 @@
$button.prop( 'disabled', false );

if ( data.errorCode ) {
window.console.log( 'Registration Failed', data.errorCode );

if ( u2fL10n.text.error_codes[ data.errorCode ] ) {
$statusNotice.text( u2fL10n.text.error_codes[ data.errorCode ] );
} else {
Expand Down
8 changes: 2 additions & 6 deletions providers/js/fido-u2f-login.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
/* global u2f, u2fL10n */
( function( $ ) {
if ( ! window.u2fL10n ) {
window.console.log( 'u2fL10n is not defined' );
window.console.error( 'u2fL10n is not defined' );
return;
}

window.console.log( 'sign', u2fL10n.request );

u2f.sign( u2fL10n.request[0].appId, u2fL10n.request[0].challenge, u2fL10n.request, function( data ) {
window.console.log( 'Authenticate callback', data );

if ( data.errorCode ) {
window.console.log( 'Registration Failed', data.errorCode );
window.console.error( 'Registration Failed', data.errorCode );
} else {
$( '#u2f_response' ).val( JSON.stringify( data ) );
$( '#loginform' ).submit();
Expand Down

0 comments on commit f33778a

Please sign in to comment.