{$user.waid_invite_datetime = $user_settings.waid_invite_datetime|default:''} {strip}
{if $is_connected_to_webasyst_id} {*if waid is enabled*} {if $is_bound_with_webasyst_contact}

[`Webasyst ID is connected`]

[`Last sign-in`] {$user.last_datetime|wa_date:"humandatetime"|lower} {* if !$is_webasyst_id_forced} [`Disconnect`] {/if *}

{*if $webasyst_id_email} {sprintf(_w('Webasyst ID account %s is connected.'), $webasyst_id_email)} {else} {sprintf(_w('%sSign-in with Webasyst ID%s is connected.'), '', '')} {/if*} {else} {if $is_own_profile} {*if own account not connected to waid*}  [`Connect Webasyst ID`]

[`Sign into your Webasyst backend with 2-factor authentication (2FA) and get convenient access to all Webasyst services and mobile apps.`]

{else}

[`Webasyst ID is not connected`]

{sprintf('[`User %s has not connected Webasyst ID yet. Secure sign-in option with 2-factor authentication (2FA) for your Webasyst backend and access to all Webasyst services and mobile apps will become available only when Webasyst ID is connected.`]', $user.login|escape)}

{if !empty($user.email) && $contact['is_user'] == '1'} {if !$user.waid_invite_datetime} {$_link_text = '[`Email instructions`]'} {else} {$_link_text = '[`Email again`]'} {/if}

{$_link_text} {if $user.waid_invite_datetime}{$user.waid_invite_datetime|wa_date:'humandatetime'|lower}{/if} {/if}

{/if} {/if} {else} {if $contact['is_user'] == '1'}

[`Webasyst ID is not connected`]

{sprintf('[`%sEnable sign-in with Webasyst ID%s so that your teammates can use all Webasyst services and mobile apps and can enable secure sign-in with 2-factor authentication (2FA).`]', "", '')}

[`What is Webasyst ID?`]

{/if} {/if}
{/strip}