{* Auth endpoints (app and urls) list *} {function auth_endpoints_select} {$_selected_route_url = ''} {$_selected_endpoint = []} {$_selected_app = []} {$_selected_app_id = $_selected_app.id|default:''} {if !empty($auth_config.route_url) && isset($auth_endpoints[$auth_config.route_url])} {$_selected_endpoint = $auth_endpoints[$auth_config.route_url]} {$_selected_route_url = $auth_config.route_url|default:''} {$_selected_app = $_selected_endpoint.app|default:[]} {/if}
[`Site section for login and signup`]
[`Select a site section where visitors will sign up and log into their personal accounts.`]
{/function} {* Password system *} {function password_system}
[`Passwords type`]
{$_auth_type = $auth_config.auth_type|default:waAuthConfig::AUTH_TYPE_USER_PASSWORD} {if $no_channels} {$_auth_type = waAuthConfig::AUTH_TYPE_USER_PASSWORD} {/if} {foreach $auth_types as $_auth_type_id => $_auth_type_info} {$_name = $_auth_type_info.name} {$_is_checked = $_auth_type == $_auth_type_id}
{* Signup Confirm *} {if $_auth_type_id == waAuthConfig::AUTH_TYPE_USER_PASSWORD}
{$_confirm = $auth_config.signup_confirm|default:false}
[`A signup confirmation link or code will be sent in a notification.`]
[`A registered website visitor will be able to log in only with an email address or phone number confirmed.`]
{/if}
{/foreach}
[`Successful signup notification`]
{$_notify = $auth_config.signup_notify|default:null || $_auth_type == waAuthConfig::AUTH_TYPE_GENERATE_PASSWORD}
{/function} {function timeout}
[`Verification code re-sending`]
{/function} {function auth_by_login}
[`Enable to allow backend users to log in on the website with their login names. Only login names different from phone numbers, i.e. containing characters other than digits, are supported.`]
{/function} {* Email settings *} {function email_settings} {$_email_used = in_array(waAuthConfig::AUTH_METHOD_EMAIL, $used_auth_methods)}

[`Email`]

{/function} {* Social networks settings *} {function social_networks_settings} {$_social_used = in_array(waAuthConfig::AUTH_METHOD_SOCIAL, $used_auth_methods)}

[`Social networks (additional authorization option)`]

{/function} {* Phone settings *} {function phone_settings} {$_sms_used = in_array(waAuthConfig::AUTH_METHOD_SMS, $used_auth_methods)}

[`Phone`]

{/function} {* Register form *} {function register_form}

[`Signup form`]

{/function} {* Login form *} {function login_form}

[`Login form`]

{/function}