# two-factor-authentication/1.14.4/simba-tfa/templates/shortcode-tfa-user-settings.php

Two Factor Authentication, version 1.14.4. 27 lines.

- Page: https://pluginprobe.com/plugins/two-factor-authentication/1.14.4/code/simba-tfa/templates/shortcode-tfa-user-settings.php
- Raw: https://pluginprobe.com/plugins/two-factor-authentication/1.14.4/raw/simba-tfa/templates/shortcode-tfa-user-settings.php
- Modified: 2022-01-26T14:19:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/two-factor-authentication/1.14.4/code/simba-tfa/templates/shortcode-tfa-user-settings.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) die('No direct access.');

if (!$is_activated_for_user) {
	_e('Two factor authentication is not available for your user.', 'two-factor-authentication');
} else {
	
	?>
	
	<div class="wrap" style="padding-bottom:10px">
	
		<?php $simba_tfa->include_template('settings-intro-notices.php'); ?>
		
		<?php $tfa_frontend->settings_enable_or_disable_output(); ?>
		
		<?php $simba_tfa->get_totp_controller()->current_codes_box(); ?>
		
		<?php $simba_tfa->get_totp_controller()->advanced_settings_box(array($tfa_frontend, 'save_settings_button')); ?>
	
	</div>
	
	<?php $tfa_frontend->save_settings_javascript_output(); ?>
	
	<?php
}

```
