[s`Sign-in with Webasyst ID`]

{if $is_connected}
[s`Disable Webasyst services`]
{/if}

[s`Sign-in with Webasyst ID is a universal authorization option that unites Webasyst Customer Center and sign-in to Webasyst backends on your own domains.`] [s`Webasyst ID allows you to use all Webasyst apps, sites, and services, and to avoid the use of different passwords on various domains.`] {sprintf(_ws('%sHow it works?%s'), '', '')}

{if $is_broken_connection}
[s`Connection to Webasyst ID server is broken. Please re-connect your account to continue using it.`] [s`To do so, disable sign-in with Webasyst ID and enable it again.`]
{/if} {if $is_connected}
{if $is_user_bound_to_webasyst_id}

[s`Unified mobile-ready secure Webasyst ID sign-in for everyone on your team.`] [s`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. Newly added users will get connected to Webasyst ID right away.`]

{/if} {if $not_connected_users && $block_show}

[s`Did not connect Webasyst ID yet`] — {_ws("%d user", "%d users", $not_connected_users_count)}

{if $wa->isMobile()}
{/if} {foreach $not_connected_users as $user} {/foreach}
{$user.name|escape} {$user.name|escape} {$_email = $user.email.0|default:''} {if $_email}
{if $user.is_current_contact} [s`Connect my Webasyst ID`] {else} {if !$user.waid_invite_datetime} {$_link_text = '[`Send invitation`]'} {else} {$_link_text = '[`Re-send invitation`]'} {/if} {$_link_text} {if $user.waid_invite_datetime}{$user.waid_invite_datetime|wa_date:'humandatetime'}{/if} {/if}
{else} [s`Unknown email`] {/if}
{if $wa->isMobile()}
{/if}
{/if} {if $connected_users && $block_show}

[s`Connected to Webasyst ID`] — {if $users_count == $connected_users_count} [s`all users!`] {else} {_ws("%d user", "%d users", $connected_users_count)} {/if}

{if $wa->isMobile()}
{/if} {foreach $connected_users as $user} {/foreach}
[s`Name`] [s`Webasyst ID`] [s`Connected`] [s`Sign-in with 2FA`]
{$user.name|escape} {if (!empty($user.webasyst_id['email']))} {$user.webasyst_id['email']|escape} {/if} {if (!empty($user.webasyst_id['phone']))} {$user.webasyst_id['phone']|escape} {/if} {if $user.two_fa_mode && $user.two_fa_time} {else} {/if}
{if $wa->isMobile()}
{/if}
{/if}
[s`Auth log`]
[s`Date`] [s`Webasyst ID`] [s`Sign-in with 2FA`] [s`User-Agent`]
{else}
{if $users_count > 1}

{/if}
{/if} {$_locale = [ 'disabled_toggle_reason' => _ws('You need to connect Webasyst ID to your account.') ]}