[%
USE Whostmgr;
USE JSON;
SET stylesheet_includes = [
Whostmgr.find_file_url('/templates/twofactorauth/index.css')
];
SET debug_mode = CPANEL.is_debug_mode_enabled();
SET has_root = Whostmgr.hasroot();
SET policy_active = data.status;
SET issuer = data.issuer;
SET system_wide_issuer = data.system_wide_issuer;
SET current_users_status = data.user_status;
SET server_info = Whostmgr.get_server_info();
SET server_hostname = server_info.hostname;
SET on_switch_text = "ON";
SET off_switch_text = "OFF";
IF (locale.get_language_tag() != "en");
# These characters should not be translated.
on_switch_text = "I";
off_switch_text = "O";
END;
SET BREADCRUMB = '/scripts7/twofactorauth/';
SET ROOT_URL = (Whostmgr.ENV.HTTPS == 'on' ? 'https://' : 'http://') _ Whostmgr.ENV.HTTP_HOST _ ':' _ Whostmgr.ENV.SERVER_PORT _ cp_security_token;
%]
[% WRAPPER 'master_templates/master.tmpl'
header = locale.maketext('Two-Factor Authentication'),
breadcrumburl = BREADCRUMB,
base = BREADCRUMB,
stylesheets = stylesheet_includes,
theme='bootstrap'
CJT2_EXCLUSIVE = 1,
app_key='two_factor_authentication';
-%]
[% locale.maketext("Two-factor authentication (2FA) is an improved security measure that requires two forms of identification: your password and a generated security code. When 2FA is enabled, an app on your smartphone supplies a code that you must enter with your password to log in.") %]
[% IF has_root -%]
[% END -%]
[% locale.maketext('The Two-Factor Authentication Security Policy is [output,strong,Enabled]') %]
[% locale.maketext('The Two-Factor Authentication Security Policy is [output,strong,Disabled]') %]
[%# DEBUG mode uses a different template path by default %]
[% IF debug_mode %]
[% PROCESS 'master_templates/cjt2_header_include.tt' %]
[% END #wrapper -%]