{$_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':'[s`B,KB,MB`]'} {/if} {* Delete image *}   [s`Delete`]
{elseif $custom_image === null} [s`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.`]
{if $is_waid_connected}
{sprintf(_ws('Use only sign-in option with Webasyst ID — recommended'), 's-green')} [s`Saved`]
{sprintf( _ws('When sign-in with Webasyst ID is enabled by default, the usual sign-in method is disabled, with all its configuration saved for later use. Backend users who are not yet connected to Webasyst ID will be able to get connected later on, or you may send them an email invitation in section “Sign-in with Webasyst ID”. Newly added users will get connected to Webasyst ID right away.'), $waid_settings_link )}
{/if}
{* 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 *}
[s`Re-sending of verification code`]
{* Auth by email *}
[s`Email notification templates`]
{if empty($email_channels)}
[s`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 *}
[s`National direct-dialing code (NDD)`]
{$_phone_transform_prefix = $auth_config.phone_transform_prefix|default:[]}
{$_input_code = $_phone_transform_prefix['input_code']|default:''}
[s`Enter the NDD code which is used for making calls within your country.`]
[s`The NDD, if specified, will be replaced with the country code in website visitors’ phone numbers.`]
[s`Country code`]
{$_output_code = $_phone_transform_prefix['output_code']|default:''} +
[s`Enter your country’s phone number code to be used in website visitors’ phone numbers instead of the NDD.`]

[s`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 *}
[s`Auto-login`]
[s`“Remember me” option`]
{* Background image in authorization page *}
[s`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' => _ws('enabled'), 'disabled' => _ws('disabled'), 'login_names' => [ 'login' => _ws('Login'), 'phone' => _ws('Phone'), 'login_or_phone' => _ws('Login or phone') ], 'disabled_toggle_reason' => _ws('You need to connect Webasyst ID to your account.') ]}