This plugin provides Multi-Factor Authentication (MFA) for Moodle using Telegram as an authentication method.
- Download the plugin from the Moodle plugins directory or clone this repository
- Extract the files to the directory:
moodle/admin/tool/mfa/factor/telegram/ - Log in as an administrator and visit the site administration page to complete the installation
- Configure the plugin in Site Administration > Plugins > Multi-factor authentication > Manage factors
- Enable the Telegram factor in the MFA administration page
- Set up a Telegram bot:
- Create a new bot using BotFather
- Get the bot token and enter it in the plugin settings
Users need to:
- Visit their MFA preferences page
- Click "Set up" for the Telegram factor
- Find their Telegram Chat ID by contacting @userinfobot on Telegram
- Enter their Chat ID in the setup form
- Receive and enter a verification code sent to their Telegram account to complete the setup
After setup, when users log in:
- They will authenticate with their username and password as usual
- A 6-digit verification code will be sent to their Telegram account
- They must enter this code to complete the login process
This plugin is licensed under the GNU GPL v3 or later.