{$_reload = true} {$_result = $result.result|default:[]} {$_is_bind_with_webasyst_contact = $result.type|default:'' === 'bind_with_webasyst_contact'} [s`Sign in with Webasyst ID`] {if $_is_bind_with_webasyst_contact}
{if $_result.status} {*After 3 seconds you will redirected back to backend of your site, or you can click "Got it" to redirect right now*} {* Successfull binding webasyst ID contact with current isntallation user *} {$_webasyst_contact_info = $_result.details.webasyst_contact_info} OK

[`Sign in with Webasyst ID`] [`has been successfully connected to account`]
{$_webasyst_contact_info.name|default:''|escape}{if $_webasyst_contact_info.email|default:[]} ({$_webasyst_contact_info.email[0].value|escape}){/if}

[`Will close in`] 3 [`sec`]... {else} {$_webasyst_contact_info = $_result.details.webasyst_contact_info} {$_bound_contact_info = $_result.details.bound_contact_info} {$_current_user_info = $_result.details.current_user_info}

[`Sign in with Webasyst ID`]

{sprintf( _w('Webasyst ID account %s is already connected to user %s'), $_webasyst_contact_info.userpic, $_webasyst_contact_info.name|escape, $_bound_contact_info.userpic, $_bound_contact_info.name|escape)}

[`Change connection to a new user?`]

{sprintf( _w('If you need to change the connection of your Webasyst ID account to the user %s press "Confirm"'), $_current_user_info.name|escape, $_bound_contact_info.name|escape)}

{$_reload = false} {/if}
{/if}