Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.
Two-factor authentication 2FA (Google Authenticator, Yandex Key, Microsoft Authenticator, Authy)

MODULE FOR 1C-BITRIX

Two-factor authentication 2FA (Google Authenticator, Yandex Key, Microsoft Authenticator, Authy)

Two-factor authentication 2FA (Google Authenticator, Yandex Key, Microsoft Authenticator, Authy)

Two-factor authentication (2FA) module for websites built on the 1C-Bitrix platform. After entering a password, the system requests a six-digit code from an authenticator app on a mobile device, preventing access if the password is lost or guessed. Protection covers both the administrative section and the public part of the site.

Technical details

Published
19 November 2026
Version
1.0.0
Installed
Fewer than 50 times
Compatible editions
First Site, Start, Standard, Small Business, Business
Responsive design
Yes
Composite support
Yes
Compatible with Sites24
No
Developer
Two-factor authentication 2FA (Google Authenticator, Yandex Key, Microsoft Authenticator, Authy)

What this solution does

Two-factor authentication (2FA) module for websites built on the 1C-Bitrix platform. After entering a password, the system requests a six-digit code from an authenticator app on a mobile device, preventing access if the password is lost or guessed. Protection covers both the administrative section and the public part of the site.

Free applications generating one-time codes according to the TOTP standard (RFC 6238) are supported, including Yandex Key, Google Authenticator, Microsoft Authenticator, Authy, and other compatible solutions.

Setup is performed by the user without administrator assistance. Activation requires scanning a QR code or entering the key manually, followed by confirmation with the first generated code. The setup page lists recommended applications with links to the App Store and Google Play.

The interface is optimized for mobile devices. If the site is opened on the same smartphone where the app is installed, the key can be added via the "Add to app" button or copied to the clipboard with a single tap.

Up to five devices can be linked, each with a unique key and a clear name, such as "Work phone" or "Tablet". The interface displays the date each device was added and the time of the last code entry. Users can independently remove a lost device while maintaining access for the remaining devices.

The module provides 10 backup one-time codes for system access when a mobile device is unavailable. These codes can be saved as a file, printed, or copied. To use them, users select the link labeled "Enter backup code" (vvesti rezervnyy kod) on the login page. When the supply of codes runs low, the module automatically prompts the generation of new ones.

The "Do not ask on this device" feature allows administrators to set a trust period for the current device. The duration is configured in the module settings; a value of 0 requires the code to be entered at every login attempt.

Administrators can customize the text displayed on the application connection and code entry pages. This text may include recommendations for installing an authentication application and contact information for support in case of a lost phone.

To ensure compatibility with applications that do not render Cyrillic characters correctly, the site name and user login can be entered using Latin characters.

Integration into site design

The components "Two-factor authentication code entry" (vvod koda dvukhfaktornoy avtorizatsii) and "Two-factor authentication" (dvukhfaktornaya avtorizatsiya) can be placed on website pages. The addresses of these pages are configured in the module settings. The system verifies that the specified page exists and contains the required components, preventing login failures caused by typos in the addresses.

Until the access code is successfully entered, only the authentication page remains accessible. All other website pages, as well as access via AJAX and REST APIs, remain blocked.

For templates with a background image or dark background, the code entry form is displayed on a white card. In the boxed version of Bitrix24, the code entry process visually matches the portal login page.

Individual module pages that do not use a site template begin working immediately after installation without requiring additional configuration.

Mandatory two-factor authentication for employees

Administrators can make two-factor authentication mandatory for specific user groups, such as Administrators or Content Managers. Users in these groups cannot access the site without a connected application.

Soft rollout: a delay period in days can be set. Until this period expires, users can click the Remind me at next login button to continue working without immediately connecting the application.

The Two-factor authentication section in the Services menu displays information on who has connected the application, when they logged in, how many backup codes remain, and lists mandatory groups that have not yet connected the application along with their deadline dates.

If a user loses their phone and backup codes, an administrator can disable two-factor authentication for that user via the general list or in the user card tab. The user will need to reconnect the application upon their next login.

Administrators using the Login as another user function via the Authorize button do not need to enter a code.

Security

A new device can be linked only with a code from an already authorized device or a backup code. A stolen session is insufficient to add a personal application. Removing a device also requires entering a code and automatically resets the status of all trusted browsers.

To protect against brute-force attacks, after a specified number of consecutive incorrect codes (default 5), the user is automatically logged out of the account, and code entry is blocked for a set duration (default 15 minutes). Attempt counts are tracked in the database under a blocked state, preventing additional attempts via parallel requests or re-entry using a password.

Each code generated by the application and each backup code are accepted by the system only once. This restriction applies even if codes are sent simultaneously from different browser windows.

Secret keys are stored in the database in encrypted form. The encryption key is retrieved from the core configuration file (crypto_key in /bitrix/.settings.php) and is not stored in the database. Consequently, a database copy without the site files does not expose secret data. The module does not generate its own encryption key and cannot be installed without the crypto_key parameter. Backup codes are stored exclusively as hashes.

The notification system sends emails when two-factor authentication is enabled or disabled, devices are added or removed, new backup codes are issued, backup codes are used, or input is blocked due to incorrect attempts. Users are immediately notified if someone attempts to guess their password. Message texts are customizable via email templates, and the entire notification system can be disabled.

All device actions, incorrect code entries, blocks, and backup code usage are logged in the event log with clear descriptions.

The allowed time skew between the phone and the server is configurable, ranging from "current code only" to ±2 minutes (default ±30 seconds).

The HTTPS-only mode prevents code entry and setup pages from loading over unencrypted connections.

This module is free, requires no SMS or external services, verifies codes on your server, and renders QR codes in the browser. It does not require the "Proactive Protection" module and is compatible with the "First Site" and "Start" editions.

The module is compatible with the built-in two-factor authentication feature called Proactive Protection. If the core confirms the entry of the built-in code, the module does not request an additional code (this behavior can be disabled in settings). When using other login methods or in older core versions without confirmation, the module verification remains active.

Requires PHP version 8.2 or higher and the main module version 20.0 or newer. Functionality has been verified in the web interface of the boxed Bitrix24 version.

Components operate in composite mode: personal data is loaded via a dynamic area and is not stored in the general cache, while the code entry page is not cached at all.

For the “Two-factor authentication 2FA (Google Authenticator, Yandex Key, Microsoft Authenticator, Authy)” module, General iT can perform installation, configuration and a functional check in your project.

USER EXPERIENCE

Solution reviews

How does this solution work in a real project? Share your experience and help others choose.

Be the first to share your experience

There are no reviews of this solution on git.ru yet. Tell us what worked well and what could be improved.

Verified purchaseAdd a key if you wish. A verified review gets a badge, priority placement and more rating weight.

Open to every clientJust sign in to your account. A key is optional; all reviews are moderated.

YOUR EXPERIENCE MATTERS

Your review

YOUR PROJECT INFRASTRUCTURE

A home for your website

BEFORE YOU ORDER

Let’s go through the details.

Is installation free?
The solution itself is free. Installation, configuration and customisation services are agreed separately. A compatible platform and an appropriate platform licence are required.
How do I check compatibility?
Compare the supported editions and solution version in the technical details with your project. Before installing on a live website, we recommend making a backup and checking the solution in a test environment.
Can you help with implementation?
We can help install the module, check its settings and verify how it works in your project. Compatibility with other customisations and the scope of work are assessed before we begin.

GENERAL iT

Let’s discuss your project

Получатель: ООО «Дженерал Ай Ти Рус»

1C-BITRIX

Install solution

Enter a domain with or without https://. The installer will open in your website control panel in a new tab.

Solution screenshots

Solution screenshot