This commit is contained in:
@ -1,19 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="ru">
|
||||
|
||||
<head>
|
||||
<title>Custom module for two-factor authentication</title>
|
||||
<title>Пользовательский модуль для двухфакторной аутентификации</title>
|
||||
<meta name="generator" content="Help+Manual" />
|
||||
<meta name="keywords" content="" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="You can enable two‑step authentication when logging in to the system or the external portal, so that a user enters a verification code as the second factor. The user will..." />
|
||||
<meta name="description" content="Вы можете включить двухэтапную аутентификацию при входе в систему или на внешний портал, чтобы в качестве второго фактора использовался код подтверждения. Пользователь получит..." />
|
||||
<meta name="picture" content="" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Full documentation for BRIX365 platform. Low-code developer guide. User guide. Admin guide. Developer guide." />
|
||||
<meta property="og:url" content="https://brix365.com/en/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<meta property="og:title" content="Cправка по Low-code платформе ELMA365" />
|
||||
<meta property="og:url" content="https://elma365.com/ru/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<meta property="og:site_name" content="ELMA365" />
|
||||
<link rel="icon" href="favicon.png" type="image/png" />
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
||||
@ -23,6 +24,7 @@
|
||||
<link rel="stylesheet" href="./article.css" />
|
||||
<link rel="stylesheet" href="./glossary.css" />
|
||||
<link rel="stylesheet" href="./theme.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="helpman_settings.js"></script>
|
||||
<script type="text/javascript" src="helpman_topicinit.js"></script>
|
||||
@ -34,16 +36,16 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M6ETBEC1R9"></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', 'G-M6ETBEC1R9');</script>
|
||||
<script>!function(e,t,c,n,r,a,m){e.ym=e.ym||function(){(e.ym.a=e.ym.a||[]).push(arguments)},e.ym.l=1*new Date;for(var s=0;s<document.scripts.length;s++)if(document.scripts[s].src===n)return;a=t.createElement(c),m=t.getElementsByTagName(c)[0],a.async=1,a.src=n,m.parentNode.insertBefore(a,m)}(window,document,"script","https://mc.yandex.ru/metrika/tag.js"),ym(83179930,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0})</script><noscript><div><img alt=""src=https://mc.yandex.ru/watch/83179930 style=position:absolute;left:-9999px></div></noscript>
|
||||
|
||||
<header class="header elma-365">
|
||||
<div class="container">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-en.svg" alt="header logo">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo.svg" alt="header logo">
|
||||
</a>
|
||||
<!-- <div class="hero__search-form" id="search-panel">
|
||||
<form class="search-form" onsubmit="ym(83180416,'reachGoal','poisk')">
|
||||
<form class="search-form" onsubmit="ym(83179930,'reachGoal','poisk')">
|
||||
<label class="search-form__label">
|
||||
<span id="reset-search" class="search__icon"></span>
|
||||
<input class="search-form__input" type="text">
|
||||
@ -63,7 +65,7 @@
|
||||
</div>
|
||||
<div class="header__navi">
|
||||
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a class="project-link" href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://brix365.com/en/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li><li><a class="project-link" href="https://brix365.com/en/help/business_solutions/-elma365-store.html">Business Solutions</a></li></ul></span></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li><li><a href="https://tssdk.brix365.com/" target="_blank">SDK</a></li></ul>
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a class="project-link" href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li><li><a class="project-link" href="https://elma365.com/ru/help/business_solutions/-elma365-store.html">Бизнес-решения</a></li></ul></span></li><li><a href="https://api.elma365.com/ru/"target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/"target="_blank">SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/" target="_blank">Академия</a></li><li><a href="https://elma365.com/ru/" target="_blank">Сайт ELMA365</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
@ -78,8 +80,8 @@
|
||||
|
||||
<aside class="sidebar" id="sidebar">
|
||||
<div class="sidebar__header">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-light-en.svg">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo-light.svg">
|
||||
</a>
|
||||
<span class="sidebar__close elma-365-close" id="close"></span>
|
||||
</div>
|
||||
@ -92,15 +94,15 @@
|
||||
<div class="article-inner">
|
||||
<div class="content">
|
||||
<header class="article__header">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<span id="subcategory" class="search-res__item-category search-res__item-category_subcategory subcategory article__badge"></span>
|
||||
|
||||
<div class="topic__breadcrumbs">
|
||||
<p><a href="360024498352.html">Modules</a> > Examples of BRIX integration modules / Custom module for two-factor authentication</p>
|
||||
<p><a href="360024498352.html">Модули расширения системы</a> > Примеры модулей интеграции с ELMA365 / Пользовательский модуль для двухфакторной аутентификации</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Custom module for two-factor authentication</span></h1>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Пользовательский модуль для двухфакторной аутентификации</span></h1>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
@ -109,26 +111,25 @@
|
||||
<a href="#h1-article" class="scroll-top"></a>
|
||||
</div>
|
||||
<!-- Placeholder for topic body. -->
|
||||
<p class="p_Normal">You can enable two‑step authentication when logging in to the system or the <a href="service-portal.html" class="topiclink">external portal</a>, so that a user enters a verification code as the second factor. The user will receive this code through a third‑party service, for example a messenger.</p>
|
||||
<p class="p_Normal">To do this, create <a href="extentions.html" class="topiclink">a custom module</a> and then select it:</p>
|
||||
<p class="p_Normal">Вы можете включить двухэтапную аутентификацию при входе в систему или на <a href="service-portal.html" class="topiclink">внешний портал</a>, чтобы в качестве второго фактора использовался код подтверждения. Пользователь получит этот код через сторонний сервис, например мессенджер. </p>
|
||||
<p class="p_Normal">Для этого создайте <a href="extentions.html" class="topiclink">пользовательский модуль</a> и затем выберите его:</p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal">In <a href="security_settings.html#two-factor-authentication" class="topiclink">the security settings</a> to enable two-factor authentication when logging in to the system.</li><li class="p_Normal">In <a href="portal-login-page.html#two-factor" class="topiclink">the settings of the external portal</a> on the <span style="font-weight: bold;">Authentication</span> tab to enable two-factor authentication for internal users when they log in to the portal.</li></ul>
|
||||
<li class="p_Normal">в <a href="security_settings.html#authorization" class="topiclink">настройках безопасности</a>, чтобы включить двухфакторную аутентификацию при входе в систему;</li><li class="p_Normal">в <a href="portal-login-page.html#two-factor" class="topiclink">настройках портала</a> на вкладке <span style="font-weight: bold;">Авторизация</span>, чтобы включить двухфакторную аутентификацию при входе на портал для внутренних пользователей.</li></ul>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">начало внимание</span></p>
|
||||
<p class="p_Normal">Only users included in the <a href="360006871932.html#administrators" class="topiclink">Administrators</a> group can work with modules and configure them.</p>
|
||||
<p class="p_Normal">Работать с модулями и настраивать их могут только пользователи, включённые в группу <a href="360006871932.html#administrators" class="topiclink">Администраторы</a>.</p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">конец внимание</span></p>
|
||||
<p class="p_Normal">For example, let's configure receiving a verification code through a Telegram bot by following these steps:</p>
|
||||
<p class="p_Normal">Для примера настроим получение кода подтверждения через Telegram-бот, выполнив шаги:</p>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" class="p_Normal">Configure receiving a code from a third‑party service.</li><li value="2" class="p_Normal">Create and configure a module.</li><li value="3" class="p_Normal">Enable the module for the second authentication factor.</li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Step 1: Configure receiving a code from a third-party service</span></h2>
|
||||
<li value="1" class="p_Normal">Настроить получение кода из стороннего сервиса.</li><li value="2" class="p_Normal">Создать и настроить модуль.</li><li value="3" class="p_Normal">Включить модуль для второго фактора аутентификации.</li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Шаг 1. Настроить получение кода из стороннего сервиса</span> </h2>
|
||||
<ol style="list-style-type:upper-roman">
|
||||
<li value="1" class="p_Normal">Go to Telegram.</li><li value="2" class="p_Normal">Create a bot. Read more in <a href="https://core.telegram.org/bots/tutorial" target="_blank" class="weblink">the official Telegram documentation</a>.</li><li value="3" class="p_Normal">Copy the bot token.</li><li value="4" class="p_Normal">Use the token to get a chat ID for the user. You can use the following method:</li></ol>
|
||||
<li value="1" class="p_Normal">Перейдите в Telegram.</li><li value="2" class="p_Normal">Создайте бота. Подробнее читайте в <a href="https://core.telegram.org/bots/tutorial" target="_blank" class="weblink">официальной документации Telegram</a>.</li><li value="3" class="p_Normal">Скопируйте токен бота.</li><li value="4" class="p_Normal">С помощью токена получите идентификатор чата для пользователя. Вы можете использовать следующий способ:</li></ol>
|
||||
<ol style="list-style-type:decimal">
|
||||
<li value="1" class="p_Normal">A user writes any message to the created bot.</li><li value="2" class="p_Normal">After that the system administrator receives the user's chat ID with the bot.<br />
|
||||
To do this:</li></ol>
|
||||
<li value="1" class="p_Normal">Пользователь пишет любое сообщение созданному боту.</li><li value="2" class="p_Normal" style="page-break-inside: avoid; page-break-after: avoid;">Администратор системы получает идентификатор чата пользователя с ботом. Для этого:</li></ol>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal">Enter the following request in the browser: <code><b>https://api.telegram.org/bottoken/getUpdates</b></code>, where <code><b>token</b></code> is the token received when creating the bot.</li><li class="p_Normal">In response to this request, you see a JSON text on the browser page, which contains the chat ID.</li></ul>
|
||||
<p class="p_Normal"><a class="dropdown-toggle" style="font-style: normal; font-weight: normal; color: #000000; background-color: transparent; text-decoration: none;" href="javascript:HMToggle('toggle','TOGGLE0186A1')">Example of JSON text</a></p>
|
||||
<div id="TOGGLE0186A1" class="dropdown-toggle-body" style="text-align: left; text-indent: 0; line-height: 1.80; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="border:none; border-spacing:0;">
|
||||
<li class="p_Normal" style="page-break-inside: avoid; page-break-after: avoid;">введите следующий запрос в браузере: <code><b>https://api.telegram.org/bottoken/getUpdates</b></code>, где <code><b>token</b></code> — токен, полученный при создании бота;</li><li class="p_Normal" style="page-break-after: avoid;">в ответ на этот запрос на странице браузера появится JSON-текст, в котором содержится идентификатор чата.</li></ul>
|
||||
<p class="p_Normal"><a class="dropdown-toggle" style="font-style: normal; font-weight: normal; color: #000000; background-color: transparent; text-decoration: none;" href="javascript:HMToggle('toggle','TOGGLE0186A1')">Пример JSON-текста</a></p>
|
||||
<div id="TOGGLE0186A1" class="dropdown-toggle-body" style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="border:none; border-spacing:0;">
|
||||
<tr>
|
||||
<td style="vertical-align:top; padding:0; border:none"><p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">{</span><br />
|
||||
<span class="f_CodeExample"> "ok": true,</span><br />
|
||||
@ -141,7 +142,7 @@ To do this:</li></ol>
|
||||
<span class="f_CodeExample"> "id": 0000000001,</span><br />
|
||||
<span class="f_CodeExample"> "is_bot": false,</span><br />
|
||||
<span class="f_CodeExample"> "first_name": "UserName",</span><br />
|
||||
<span class="f_CodeExample"> "language_code": "en"</span><br />
|
||||
<span class="f_CodeExample"> "language_code": "ru"</span><br />
|
||||
<span class="f_CodeExample"> },</span><br />
|
||||
<span class="f_CodeExample"> "chat": {</span><br />
|
||||
<span class="f_CodeExample"> "id": 0000000001,</span><br />
|
||||
@ -149,7 +150,7 @@ To do this:</li></ol>
|
||||
<span class="f_CodeExample"> "type": "private"</span><br />
|
||||
<span class="f_CodeExample"> },</span><br />
|
||||
<span class="f_CodeExample"> "date": 1724073228,</span><br />
|
||||
<span class="f_CodeExample"> "text": "Hi"</span><br />
|
||||
<span class="f_CodeExample"> "text": "Привет"</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> ]</span><br />
|
||||
@ -159,23 +160,23 @@ To do this:</li></ol>
|
||||
</table>
|
||||
</div>
|
||||
<ol style="list-style-type:upper-roman" start="5">
|
||||
<li value="5" class="p_Normal">Specify the chat ID in the <a href="360004833572.html#accounts" class="topiclink">Accounts</a> field in the user profile. If the ID is not specified, the employee will only log in using the login and password.</li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Step 2: Create and configure a module</span></h2>
|
||||
<p class="p_Normal">Go to <span style="font-weight: bold;">Administration > Modules</span> and <a href="create-extention.html" class="topiclink">create a module</a>. Then configure the settings on the <span style="font-weight: bold;">Settings</span> page that opens:</p>
|
||||
<li value="5" class="p_Normal">В профиле пользователя укажите его идентификатор чата в поле <a href="360004833572.html#accounts" class="topiclink">Учетные записи</a>. Если идентификатор не указан, сотрудник войдёт в систему только по логину и паролю. </li></ol>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Шаг 2. Создать и настроить модуль</span></h2>
|
||||
<p class="p_Normal">Перейдите в <span style="font-weight: bold;">Администрирование > Модули</span> и <a href="create-extention.html" class="topiclink">создайте модуль</a>. Затем выполните настройки на открывшейся странице <span style="font-weight: bold;">Управление</span>:</p>
|
||||
<ol style="list-style-type:upper-roman">
|
||||
<li value="1" class="p_Normal">On the <a href="extention-settings.html" class="topiclink">Settings</a> tab, create <a href="360009707032.html#string" class="topiclink">String</a>-type properties that will be used in the script for receiving a verification code via a messenger bot:</li></ol>
|
||||
<li value="1" class="p_Normal">На вкладке <a href="extention-settings.html" class="topiclink">Настройки</a> создайте свойства типа <a href="360009707032.html#string" class="topiclink">Строка</a>, которые будут использованы в скриптах для получения кода подтверждения через бот мессенджера:</li></ol>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Account Type</span> (<code><b>accountType</b></code>). The name of a third-party service through which two-factor authentication is configured.</li><li class="p_Normal"><span style="font-weight: bold;">Bot Token</span> (<code><b>botToken</b></code>). The bot ID on the external service side. Issued when creating a bot.</li><li class="p_Normal"><span style="font-weight: bold;">Message</span> (<code><b>message</b></code>). The message that a user will receive along with the verification code. For example, “To log in to BRIX, please enter this verification code: ”.</li></ul>
|
||||
<p class="p_Normal">If all the properties are specified, go to the <span style="font-weight: bold;">Common</span> tab and click <span style="font-weight: bold;">Save</span>.</p>
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Тип аккаунта</span> (<code><b>accountType</b></code>) — название стороннего сервиса, через который настраивается двухфакторная аутентификация;</li><li class="p_Normal"><span style="font-weight: bold;">Токен бота</span> (<code><b>botToken</b></code>) — идентификатор бота на стороне внешнего сервиса. Выдаётся при создании бота;</li><li class="p_Normal"><span style="font-weight: bold;">Сообщение</span> (<code><b>message</b></code>) — сообщение, которое получит пользовать вместе с кодом подтверждения, например «Вы заходите в ELMA365. Ваш проверочный код: ».</li></ul>
|
||||
<p class="p_Normal">Если все свойства указаны, перейдите на вкладку <span style="font-weight: bold;">Основные</span> и нажмите <span style="font-weight: bold;">Сохранить</span>.</p>
|
||||
<ol style="list-style-type:upper-roman" start="2">
|
||||
<li value="2" class="p_Normal">Go to the <span style="font-weight: bold;">API Methods</span> tab and click <span style="font-weight: bold;">Edit</span>. The method editor will open. Then, on the <span style="font-weight: bold;">Scripts</span> tab, write the code using the following template:</li></ol>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">// This interface will allow you to set conditions in the function below that will prompt the user for the second factor authentication code</span><br />
|
||||
<li value="2" class="p_Normal">Перейдите на вкладку <span style="font-weight: bold;">Методы API</span> и нажмите <span style="font-weight: bold;">Редактировать</span>. Откроется редактор методов. На вкладке <span style="font-weight: bold;">Скрипты</span> напишите код, используя следующий шаблон:</li></ol>
|
||||
<p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">// Интерфейс позволят задать условия в указанной ниже функции, при которых у пользователя будет запрашиваться код второго фактора аутентификации</span><br />
|
||||
<span class="f_CodeExample">interface SecondFactor_sendError { error: string; skip2fa: boolean; }</span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample">// This function identifies a user login by the ID and receives a confirmation code</span><br />
|
||||
<span class="f_CodeExample">async function secondFactor_sendCode(userID: string, code: string): Promise<SecondFactor_sendError> {}</span> </p>
|
||||
<p class="p_Normal"><a class="dropdown-toggle" style="font-style: normal; font-weight: normal; color: #000000; background-color: transparent; text-decoration: none;" href="javascript:HMToggle('toggle','TOGGLE0186A2')">Example script for searching for a user login by the chat ID with a Telegram bot</a></p>
|
||||
<div id="TOGGLE0186A2" class="dropdown-toggle-body" style="text-align: left; text-indent: 0; line-height: 1.80; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="border:none; border-spacing:0;">
|
||||
<span class="f_CodeExample">// Функция определяет входящего пользователя по идентификатору и принимает код подтверждения</span><br />
|
||||
<span class="f_CodeExample">async function secondFactor_sendCode(userID: string, code: string): Promise<SecondFactor_sendError> {} </span></p>
|
||||
<p class="p_Normal"><a class="dropdown-toggle" style="font-style: normal; font-weight: normal; color: #000000; background-color: transparent; text-decoration: none;" href="javascript:HMToggle('toggle','TOGGLE0186A2')">Пример скрипта для поиска входящего пользователя по идентификатору чата с Telegram-ботом</a></p>
|
||||
<div id="TOGGLE0186A2" class="dropdown-toggle-body" style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="border:none; border-spacing:0;">
|
||||
<tr>
|
||||
<td style="vertical-align:top; padding:0; border:none"><p class="p_CodeExample" style="white-space: normal; page-break-inside: avoid;"><span class="f_CodeExample">interface SecondFactor_sendError {</span><br />
|
||||
<span class="f_CodeExample"> error: string;</span><br />
|
||||
@ -212,7 +213,6 @@ To do this:</li></ol>
|
||||
<span class="f_CodeExample">}</span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample">function sendToTelegram(chatId: string, code: string):void {</span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample"> let botToken = Namespace.params.data.botToken;</span><br />
|
||||
<span class="f_CodeExample"> let message = Namespace.params.data.message;</span><br />
|
||||
@ -226,21 +226,20 @@ To do this:</li></ol>
|
||||
<span class="f_CodeExample"> body:JSON.stringify({'chat_id': chatId, 'text': message+code})</span><br />
|
||||
<span class="f_CodeExample"> });</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<p class="p_Normal"> </p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Step 3: Enable the module for the second authentication factor</span></h2>
|
||||
<h2 class="p_Heading2"><span class="f_Heading2">Шаг 3. Включить модуль для второго фактора аутентификации</span></h2>
|
||||
<ol style="list-style-type:upper-roman">
|
||||
<li value="1" class="p_Normal">Go to <span style="font-weight: bold;">Administration > Modules</span>, open the module page and enable it.</li><li value="2" class="p_Normal">In the window that opens, fill in the fields:</li></ol>
|
||||
<li value="1" class="p_Normal">Перейдите в <span style="font-weight: bold;">Администрирование > Модули</span>, откройте страницу модуля и включите его.</li><li value="2" class="p_Normal">В открывшемся окне заполните поля:</li></ol>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Bot token</span>. Add the value of the copied token.</li><li class="p_Normal"><span style="font-weight: bold;">Account type</span>. Add a name of a third-party service.</li><li class="p_Normal"><span style="font-weight: bold;">Message</span>. Add the text to be displayed before the verification code.</li></ul>
|
||||
<p class="p_Normal"><img alt="two-factor-integration-1" width="787" height="209" style="margin:0;width:787px;height:209px;border:none" src="two-factor-integration-1.png"/></p>
|
||||
<li class="p_Normal"><span style="font-weight: bold;">Токен бота</span> — значение скопированного токена;</li><li class="p_Normal"><span style="font-weight: bold;">Тип аккаунта</span> — название стороннего сервиса;</li><li class="p_Normal"><span style="font-weight: bold;">Сообщение</span> — текст, который нужно отобразить перед кодом подтверждения.</li></ul>
|
||||
<p class="p_Normal"><img alt="2fa-integration-2" width="851" height="327" style="margin:0;width:851px;height:327px;border:none" src="2fa-integration-2.png"/></p>
|
||||
<ol style="list-style-type:upper-roman" start="3">
|
||||
<li value="3" class="p_Normal">Save the settings. The module is ready for use.</li><li value="4" class="p_Normal">Go to <span style="font-weight: bold;">Administration > Security Settings > Two-Factor Authentication</span> and select the configured <a href="security_settings.html#two-factor-authentication" class="topiclink">module for the second authentication factor</a>.</li></ol>
|
||||
<p class="p_Normal">Now, if the user has their Telegram bot chat ID specified in their profile, the employee will receive a confirmation code when logging in.</p>
|
||||
<p class="p_Normal"><img alt="two-factor-integration-2" width="478" height="250" style="margin:0;width:478px;height:250px;border:none" src="two-factor-integration-2.png"/></p>
|
||||
<li value="3" class="p_Normal">Сохраните настройки. Модуль готов к использованию.</li><li value="4" class="p_Normal">Перейдите в <span style="font-weight: bold;">Администрирование > Настройки безопасности > Двухфакторная аутентификация</span> и выберите настроенный <a href="security_settings.html#2fa" class="topiclink">модуль для второго фактора аутентификации</a>.</li></ol>
|
||||
<p class="p_Normal">Теперь, если у пользователя в профиле указан его идентификатор чата с Telegram-ботом, сотруднику придёт код подтверждения при входе в систему.</p>
|
||||
<p class="p_Normal"><img alt="2fa-integration-1" width="419" height="221" style="margin:0;width:419px;height:221px;border:none" src="2fa-integration-1.png"/></p>
|
||||
|
||||
<div class="bottom-nav">
|
||||
|
||||
@ -250,14 +249,14 @@ To do this:</li></ol>
|
||||
</a>
|
||||
|
||||
|
||||
<a id="next-link" class="topic__navi_next" href="sms-integration.html">
|
||||
<span class="bottom-nav__link">sms-integration.html</span> <span
|
||||
<a id="next-link" class="topic__navi_next" href="dadata_integration.html">
|
||||
<span class="bottom-nav__link">dadata_integration.html</span> <span
|
||||
class="bottom-nav__arrow bottom-nav__arrow--next"></span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<!-- добавляет на страницу строку блок Была ли статья полезной? -->
|
||||
<div class="feedback" id="feedback"><div class="feedback-help"><span><b>Was this helpful?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx" style="display: none;">Thanks for your feedback!</div><div class="feedback__popup" id="feedback__popup_why" style="display: none;"><div class="feedback__popup-header">Please specify why:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Recommendations did not help me</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Article is hard to understand</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Didn`t answer my question</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Content does not match the topic</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Other</label></div><div class="feedback__popup" id="feedback__popup-other" style="display: none;"><div class="feedback__popup-header">How we can improve it?</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Submit"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg" class="small-img" alt="like"><spanclass="feedback-form__btn-group_yes-btn">Yes</spanclass="feedback-form__btn-group_yes-btn"></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg" class="small-img" alt="dislike"><spanclass="feedback-form__btn-group_no-btn">No</spanclass="feedback-form__btn-group_no-btn"></label></div><select name="category"><option disabled="">Please specify why</option><option value="bad_recommendation" selected="">Recommendations did not help me</option><option value="difficult_text">Article is hard to understand</option><option value="no_answer">Didn`t answer my question</option><option value="bad_header">Content does not match the topic</option><option value="other_reason">Other</option></select><input type="submit"></form></div><div class="found_typo"><p style="margin: 0px; margin-top: 16px !important;"><span><b>Found a typo?</b></span> Select it and press <i>Ctrl+Enter</i> to send us feedback</p></div></div>
|
||||
<div class="feedback-wrap"><div class="feedback" id="feedback"><span><b>Была ли статья полезной?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx">Спасибо за ваш отзыв!</div><div id="feedback-success-popup"><div class="wrap"><button type="button" class="feedback-popup-close">×</button><svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_212_2187)"><path d="M22 0.6875C10.2294 0.6875 0.6875 10.2294 0.6875 22C0.6875 33.7706 10.2294 43.3125 22 43.3125C33.7706 43.3125 43.3125 33.7706 43.3125 22C43.3125 10.2294 33.7706 0.6875 22 0.6875ZM22 40.5625C11.8023 40.5625 3.4375 32.3078 3.4375 22C3.4375 11.8024 11.6922 3.4375 22 3.4375C32.1977 3.4375 40.5625 11.6922 40.5625 22C40.5625 32.1976 32.3078 40.5625 22 40.5625ZM34.1713 16.933L18.6613 32.3186C18.257 32.7197 17.604 32.7171 17.203 32.3128L9.82283 24.873C9.42176 24.4686 9.42434 23.8157 9.82867 23.4146L10.5609 22.6884C10.9652 22.2873 11.6181 22.2899 12.0192 22.6942L17.9468 28.6697L31.9926 14.7366C32.3969 14.3356 33.0498 14.3382 33.4509 14.7425L34.1772 15.4747C34.5783 15.879 34.5757 16.532 34.1713 16.933Z" fill="#27AE60"></path></g><defs><clipPath id="clip0_212_2187"><rect width="44" height="44" fill="white"></rect></clipPath></defs></svg><p>Ваш отзыв успешно отправлен!</p><span>Спасибо за обратную связь.</span></div></div><div class="feedback__popup" id="feedback__popup_why"><button type="button" class="feedback-popup-close">×</button><div class="feedback__popup-header">Уточните, почему:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Рекомендации не помогли</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Текст трудно понять</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Нет ответа на мой вопрос</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Содержание статьи не соответствует заголовку</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Другая причина</label></div><div class="feedback__popup" id="feedback__popup-other"><button type="button" class="feedback-popup-close">×</button> <div class="feedback__popup-header">Расскажите, что вам не понравилось в статье:</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Отправить"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg"/><span class="feedback-form__btn-group_yes-btn">Да</span></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg"/><span class="feedback-form__btn-group_no-btn">Нет</span></label></div><select name="category"><option disabled>Выберите вариант</option><option value="bad_recommendation" selected>Рекомендации не помогли</option><option value="difficult_text">Текст трудно понять</option><option value="no_answer">Нет ответа на мой вопрос</option><option value="bad_header">Содержание статьи не соответствует заголовку</option><option value="other_reason">Другая причина</option></select><input type="submit"></form></div></div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
@ -265,7 +264,7 @@ To do this:</li></ol>
|
||||
<input type="checkbox" />
|
||||
<div class="article__arrow"></div>
|
||||
<div class="table-of-contents elma365-right" id="toc2Content">
|
||||
<h3 class="h3-toc">In this topic</h3>
|
||||
<h3 class="h3-toc">В этой статье</h3>
|
||||
<nav id="toc2"></nav>
|
||||
</div>
|
||||
</aside>
|
||||
@ -276,30 +275,63 @@ To do this:</li></ol>
|
||||
<div class="footer-container">
|
||||
<div class="footer-mobile">
|
||||
|
||||
<ul class="footer-mobile__list"><li><a href="https://brix365.com/en/" target="_blank">BRIX</a></li><li><a href="https://tssdk.brix365.com/en/latest/" target="_blank">SDK</a></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li></ul><ul class="footer-mobile__list"><li><a href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li></ul>
|
||||
<ul class="footer-mobile__list"><li><a href="https://api.elma365.com/ru/" target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/" target="_blank">TS SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/elma365" target="_blank">Академия</a></li></ul><ul class="footer-mobile__list"><li><a href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Send feedback</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Ask a question</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Send"></div></form><div class="hidden fade-in question-success-xs">Sent</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<span class="footer-copy">© 2025 BRIX</span>
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="#" class="arrow-top" style="display: block;"></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
<div class="container">
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Отправить фидбэк</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Задать вопрос</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Отправить"></div></form><div class="hidden fade-in question-success-xs">Ваш фидбэк отправлен.</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<div class="footer-top">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="footer-line">
|
||||
|
||||
<div class="footer-line-copy">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item"><a href="https://elma365.com/ru/" target="_blank" class="footer-link" style="color: #0D4A75;"><img src="browse.svg" alt="browse icon" class="footer-img">elma365.com</a></li><li class="footer-item"><a href="https://www.youtube.com/user/ELMABPM" target="_blank" class="footer-link"><img src="yt.svg" alt="youtube icon" class="footer-img"></a></li><li class="footer-item"><a href="https://vk.com/elma_bpm" target="_blank" class="footer-link"><img src="vk.svg" alt="vk icon" class="footer-img"></a></li><li class="footer-item"><a href="https://t.me/elmaday" target="_blank" class="footer-link"><img src="tg.svg" alt="telegram icon" class="footer-img"></a></li><li class="footer-item"><a href="https://dzen.ru/elma" target="_blank" class="footer-link"><img src="dzen.svg" alt="dzen icon" class="footer-img"></a></li>
|
||||
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="arrow-top"></a>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
<!-- <script type="text/javascript" src="jquery1.min.js"></script>-->
|
||||
<iframe name="hmnavigation" style="display:none!important"></iframe>
|
||||
<script src="./jquery-ui.js"></script>
|
||||
<!--<script src="./jquery-ui.js"></script> -->
|
||||
<script src="./jquery-ui.min.js"></script>
|
||||
<!--script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script-->
|
||||
<script src="./jquery.tocify.min.js"></script>
|
||||
<script src="./TypoReporter.min.js"></script>
|
||||
|
Reference in New Issue
Block a user