Skip to content

Commit f39ff1d

Browse files
committed
Bump to v3.5.2
1 parent fcca9b4 commit f39ff1d

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

.wordpress-org/readme/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: 2fa, authentication, telegram, authenticate, security
44
Requires at least: 6.0
55
Requires PHP: 7.0
66
Tested up to: 6.8
7-
Stable tag: 3.5.1
7+
Stable tag: 3.5.2
88
License: GPLv3
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -52,8 +52,8 @@ Please note the URL generated in the example above is https://example.com/images
5252

5353
== Changelog ==
5454

55-
= 3.5.1 =
56-
* Bugfixes in timestamp
55+
= 3.5.2 =
56+
* Timestamp bugfixes
5757

5858
= 3.5.0 =
5959
* **Enhanced Logs System**: Replaced simple logs with professional WP_List_Table implementation featuring pagination (10 items per page), sorting, and bulk actions

assets/js/wp-factor-telegram-plugin.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,20 @@ var WP_Factor_Telegram_Plugin = function ($) {
3030
$twenabled.on("change", function(evt){
3131
var isConfigured = $twconfigrow.length > 0;
3232

33-
if ($(this).is(":checked") && !isConfigured) {
34-
$twconfig.addClass('show').show();
35-
updateProgress(25);
33+
if ($(this).is(":checked")) {
34+
// Enable 2FA = 1, so tg_wp_factor_valid = 0
35+
$twctrl.val(0);
36+
if (!isConfigured) {
37+
$twconfig.addClass('show').show();
38+
updateProgress(25);
39+
}
3640
} else {
41+
// Enable 2FA = 0, so tg_wp_factor_valid = 1
42+
$twctrl.val(1);
3743
$twconfig.removeClass('show');
3844
setTimeout(function() {
3945
$twconfig.hide();
4046
}, 300);
41-
$twctrl.val(0);
4247
updateProgress(0);
4348
resetStatusIndicators();
4449
}

two-factor-telegram.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: WP 2FA with Telegram
55
* Plugin URI: https://blog.dueclic.com/wordpress-autenticazione-due-fattori-telegram/
66
* Description: This plugin enables two factor authentication with Telegram by increasing your website security and sends an alert every time a wrong login occurs.
7-
* Version: 3.5.1
7+
* Version: 3.5.2
88
* Requires at least: 6.0
99
* Tested up to: 6.8
1010
* Requires PHP: 7.0
@@ -21,7 +21,7 @@
2121
die;
2222
}
2323

24-
define('WP_FACTOR_PLUGIN_VERSION', '3.5.1');
24+
define('WP_FACTOR_PLUGIN_VERSION', '3.5.2');
2525

2626
define('WP_FACTOR_AUTHCODE_EXPIRE_SECONDS', 60 * 20);
2727

0 commit comments

Comments
 (0)