-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtwo-factor-telegram.php
57 lines (43 loc) · 1.25 KB
/
two-factor-telegram.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Plugin Name: WP 2FA with Telegram
* Plugin URI: https://blog.dueclic.com/wordpress-autenticazione-due-fattori-telegram/
* Description: This plugin enables two factor authentication with Telegram by increasing your website security and sends an alert every time a wrong login occurs.
* Version: 3.2
* Requires at least: 6.0
* Tested up to: 6.7
* Requires PHP: 7.0
* Author: dueclic
* Author URI: https://www.dueclic.com
* Text Domain: two-factor-login-telegram
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
__(
'This plugin enables two factor authentication with Telegram by increasing your website security and sends an alert every time a wrong login occurs.',
'two-factor-login-telegram'
);
error_reporting(E_ERROR);
if ( ! defined('ABSPATH')) {
die;
}
define('WP_FACTOR_PLUGIN_VERSION', '3.1');
define('WP_FACTOR_AUTHCODE_EXPIRE_SECONDS', 60 * 20);
/**
*
* Full path to the WP Two Factor Telegram File
*
*/
define('WP_FACTOR_TG_FILE', __FILE__);
define('WP_FACTOR_TG_GETME_TRANSIENT', 'tg_wp_factor_valid_bot');
/**
*
* The main plugin class
*
*/
require_once("includes/class-wp-factor-telegram-plugin.php");
function WFT()
{
return WP_Factor_Telegram_Plugin::get_instance();
}
WFT();