芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/pro/webauthn/entries/profile.js
/** * WordPress dependencies */ import { registerPlugin } from '@wordpress/plugins'; import { __, setLocaleData } from '@wordpress/i18n'; // Silence warnings until JS i18n is stable. setLocaleData( { '': {} }, 'ithemes-security-pro' ); /** * Internal dependencies */ import App from './profile/app.js'; import { UserProfileFill } from '@ithemes/security.pages.profile'; registerPlugin( 'itsec-webauthn-profile', { render() { return (
{ ( { name, userId, user, useShadow } ) => ( name === 'itsec-webauthn-profile' && (
) ) }
); }, order: 2, label: __( 'Passkeys', 'it-l10n-ithemes-security-pro' ), scope: 'solid-security-user-profile', isAvailable: ( user, currentUserId ) => { return !! user.itsec_passwordless_login?.available_methods.includes( 'webauthn' ) && user.id === currentUserId; }, } );