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

Two Factor Authentication, version 1.16.0. 30 lines.

- Page: https://pluginprobe.com/plugins/two-factor-authentication/1.16.0/code/simba-tfa/templates/shortcode-tfa-user-settings.php
- Raw: https://pluginprobe.com/plugins/two-factor-authentication/1.16.0/raw/simba-tfa/templates/shortcode-tfa-user-settings.php
- Modified: 2025-08-08T15:01:06+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.16.0/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) {
	
	global $current_user;
	echo empty($current_user->ID) ? '(' . esc_html__('Not logged in.', 'two-factor-authentication').')' : esc_html__('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_controller('totp')->current_codes_box(); ?>
		
		<?php if (!empty($show_algorithm_selector)) $simba_tfa->get_controller('totp')->advanced_settings_box(array($tfa_frontend, 'save_settings_button')); ?>
	
	</div>
	
	<?php $tfa_frontend->save_settings_javascript_output(); ?>
	
	<?php
}

```
