File "auth-app.js"
Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/better-wp-security/core/modules/two-factor/js/auth-app.js
File size: 363 bytes
MIME-type: text/plain
Charset: utf-8
wp.domReady( function() {
let permission = document.getElementById( 'itsec-app-password-rest_api_permissions' );
wp.hooks.addFilter( 'wp_application_passwords_approve_app_request', 'ithemes-security/application-passwords/new-password', function( request ) {
request.rest_api_permissions = permission.checked ? 'read' : 'write';
return request;
} );
} );