HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.30
System: Linux iZj6c1151k3ad370bosnmsZ 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User: root (0)
PHP: 7.4.30
Disabled: NONE
Upload Files
File: /var/www/html/breadsecret.com/wp-content/plugins/login-with-ajax/templates/2FA/setup-intro.php
<?php
/**
 * 2FA Setup Intro, user first sees this if they log in and need to (or are reminded to) setup 2FA
 *
 * @version 1.0.0
 * @package Login With Ajax
 * @var WP_User $user
 */
use Login_With_AJAX\TwoFA;
$site_icon = get_site_icon_url();
?>
<div class="lwa-2FA-setup-intro">
	<?php
		$is_mandatory = TwoFA::is_setup_mandatory( $user );
		$required_ts = TwoFA::get_setup_required_time( $user );
	?>
	<?php if ( $site_icon ) : ?>
		<div class="site-icon"><img src="<?php echo esc_url($site_icon); ?>"></div>
	<?php endif; ?>
	<h3><?php esc_html_e('Secure Your Account', 'login-with-ajax'); ?></h3>
	<?php if ( $is_mandatory ) : ?>
		<p><?php esc_html_e('To continue logging in, you are required to set up at least one 2FA method for added security to your account.', 'login-with-ajax'); ?></p>
	<?php elseif( $required_ts !== false ) : ?>
		<p><?php echo sprintf( esc_html__('You have %s to enable 2FA verficiation methods, set one up now to avoid additional interruptions.', 'login-with-ajax'), human_time_diff( time(), $required_ts ) ) ; ?></p>
	<?php else : ?>
		<p><?php echo sprintf( esc_html__('You have %s to secure your account, at which point you will not be able to log in without administrator intervention.', 'login-with-ajax'), human_time_diff( time(), $required_ts ) ) ; ?></p>
	<?php endif; ?>
	<p class="lwa-2FA-footer-links">
		<button href="#" class="button button-primary lwa-2FA-setup-start"><?php esc_html_e('Continue', 'login-with-ajax-pro'); ?></button>
		<?php if( !$is_mandatory ): ?>
			<a class="button button-secondary lwa-2FA-setup-skip" href="<?php echo esc_attr(LoginWithAjax::getLoginRedirect($user)); ?>"><?php esc_html_e('Set Up Later', 'login-with-ajax-pro'); ?></a>
		<?php endif; ?>
	</p>
</div>
<?php