{$_title = "[s`Backend authorization`] — {$wa->accountName(false)}"} {$_title = $_title|replace:' ':' '} {$_account_name = {$wa->accountName()}} {function name="_renderCustomBackground" custom_image=[]} {strip}
{if $custom_image !== null && $custom_image !== false}
{* Image params *} {$custom_image.width|default:null} × {$custom_image.height|default:null}, {if !empty($custom_image.file_size)} {$custom_image.file_size|wa_format_file_size:'%0.0f':'[`B,KB,MB`]'} {/if} {* Delete image *}   [`Delete`]
{elseif $custom_image === null} [`File not found.`] {$settings.auth_form_background|escape} {/if}
{/strip} {/function}

[s`Backend authorization`]

[s`Set up how users will log into your Webasyst backend.`]
{* Auth type *}
[s`Passwords type`]
{$_auth_type = $auth_config.auth_type|default:waAuthConfig::AUTH_TYPE_USER_PASSWORD} {if empty($email_channels)} {$_auth_type = waAuthConfig::AUTH_TYPE_USER_PASSWORD} {/if}
{* Timeouts *}
[`Re-sending of verification code`]
{* Auth by email *}
[s`Email notification templates`]
{if empty($email_channels)}
[`Specify email sender address`]
{sprintf('[s`No sender email address specified in “Email settings” section.`]', "`$wa_backend_url`webasyst/settings/email/")}
[s`Please be sure to correctly set up a sender. It will be used to restore a lost password or to regain access to the backend should the one-time password authentication fail.`]
{else} {sprintf('[s`Edit the list in “Email templates” section.`]', "`$wa_backend_url`webasyst/settings/email/template/")} {* HERE ERROR MESSAGES THAT WILL BE SHOW/HIDE OR RERENDER BY JS *} {function name="webasyst_showEmailChannelDiagnosticMessage" message=[] is_template=false}
{$message.text|default:''}
{$message.help_text|default:''}
{/function} {foreach $email_channels as $_channel} {/foreach} {webasyst_showEmailChannelDiagnosticMessage message=[] is_template=true} {/if}
{* Auth by SMS *}
[s`Enable authorization by phone number`]
{$_is_checked = in_array(waVerificationChannelModel::TYPE_SMS, $used_auth_methods)}
{sprintf('[s`Edit the list in “SMS templates” section.`]', "`$wa_backend_url`webasyst/settings/sms/template/")} {* HERE ERROR MESSAGES THAT WILL BE SHOW/HIDE OR RERENDER BY JS *}
[`National direct-dialing code (NDD)`]
{$_phone_transform_prefix = $auth_config.phone_transform_prefix|default:[]}
{$_input_code = $_phone_transform_prefix['input_code']|default:''}
[`Enter the NDD code which is used for making calls within your country.`]
[`The NDD, if specified, will be replaced with the country code in website visitors’ phone numbers.`]
[`Country code`]
{$_output_code = $_phone_transform_prefix['output_code']|default:''} +
[`Enter your country’s phone number code to be used in website visitors’ phone numbers instead of the NDD.`]

[`Login form`]

{* Captcha in auth form *}
[s`Captcha`]
[s`A user must enter characters shown in an image`]
{$_variants = $login_captcha_variants} {sprintf('[s`Select Webasyst default captcha or Google reCAPTCHA`]', "{$wa_backend_url}webasyst/settings/captcha/")}
{* "Remember me" in auth *}
[`Auto-login`]
[s`“Remember me” option`]
{* Background image in authorization page *}
[`Login form background`]
    {foreach $backgrounds as $_background} {$_background} {/foreach} {foreach $images as $_image} {$_image} {/foreach}
{* Upload new image and preview *}
{if $settings.auth_form_background} {_renderCustomBackground custom_image=$custom_image} {/if}
{* Log in form preview *}
{include file="./SettingsOnetimePasswordAuthConfirmDialog.inc.html" inline}
{* Templates for js *} {* Template for confirm *} {* Text *} {* Buttons *} {* Template for custom image preview *} {* Template for custom image preview in list *}
{$_locale = [ 'enabled' => _w('enabled'), 'disabled' => _w('disabled'), 'login_names' => [ 'login' => _w('Login'), 'phone' => _w('Phone'), 'login_or_phone' => _w('Login or phone') ] ]}