Changeset 3252815
- Timestamp:
- 03/09/2025 10:59:20 AM (12 months ago)
- Location:
- facial-recognition-authentication/trunk
- Files:
-
- 4 edited
-
assets/js/main2.js (modified) (2 diffs)
-
facial-recognition-authentication.php (modified) (1 diff)
-
inc/frontend.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
facial-recognition-authentication/trunk/assets/js/main2.js
r3252297 r3252815 63 63 64 64 $('#accountForm').on('submit', manage_account); 65 66 // چک کردن 2FA و اجرای تشخیص چهره قبل از اون 67 if (pluginData.is_wordfence_2fa_active === 'true') { 68 console.log('Wordfence 2FA فعاله، ولی تشخیص چهره اول اجرا میشه'); 69 // مخفی کردن فرم 2FA تا تشخیص چهره تموم شه 70 setTimeout(() => { 71 if ($('.wf-form-2fa').length) { 72 $('.wf-form-2fa').hide(); 73 } 74 }, 500); 75 } 65 76 }); 66 77 … … 148 159 icon: 'success', 149 160 timer: 2000 150 }).then(() => refresh_page()); 161 }).then(() => { 162 if (pluginData.is_wordfence_2fa_active === 'true') { 163 // اگه 2FA فعال بود، فرم Wordfence رو نشون بده 164 $('.wf-form-2fa').show(); 165 console.log('تشخیص چهره تموم شد، حالا 2FA اجرا میشه'); 166 } else { 167 refresh_page(); // اگه 2FA نبود، مستقیم رفرش کن 168 } 169 }); 151 170 } 152 171 }) -
facial-recognition-authentication/trunk/facial-recognition-authentication.php
r3252297 r3252815 14 14 Description: Face ID registration and login for WordPress 15 15 Author: New-way 16 Version: 1.1. 016 Version: 1.1.1 17 17 */ 18 18 -
facial-recognition-authentication/trunk/inc/frontend.php
r3245333 r3252815 14 14 } 15 15 16 $domain = get_site_url(); // دامنه فعلی رو میفرستیم16 $domain = get_site_url(); 17 17 wp_localize_script('main2.js', 'pluginData', array( 18 18 'login_url' => site_url('/wp-login.php'), 19 'domain' => $domain // تغییر از site_id به domain 19 'domain' => $domain, 20 'is_wordfence_2fa_active' => class_exists('wfUtils') && wfConfig::get('is2faEnabled') ? 'true' : 'false' // چک کردن 2FA 20 21 )); 21 22 } 22 23 23 add_action('login_enqueue_scripts', 'fra_faceid_load_assets'); 24 // اولویت بالا برای لود قبل از Wordfence 25 add_action('login_enqueue_scripts', 'fra_faceid_load_assets', 5); // اولویت 5 که زودتر از بقیه باشه 24 26 25 27 function fra_faceid_login() { … … 31 33 function fra_faceid_handle_login() { 32 34 if (!headers_sent()) { 35 // غیرفعال کردن فرم ورود پیشفرض وردپرس 36 remove_all_actions('login_form'); // حذف فرمهای دیگه مثل Wordfence 33 37 fra_faceid_login(); 34 38 exit; … … 36 40 } 37 41 42 // همیشه اجرا شه مگه اینکه رفرش شده باشه 38 43 if (isset($_GET['refreshed_by_js']) && $_GET['refreshed_by_js'] === 'true') { 39 remove_action( "login_head", "fra_faceid_handle_login");44 remove_action('login_head', 'fra_faceid_handle_login'); 40 45 } else { 41 add_action('login_head', 'fra_faceid_handle_login' );46 add_action('login_head', 'fra_faceid_handle_login', 1); // اولویت 1 برای اجرا قبل از Wordfence 42 47 } -
facial-recognition-authentication/trunk/readme.txt
r3252297 r3252815 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.4 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 76 76 No, our plugin works with any standard webcam. 77 77 78 = Does it work with Wordfence’s Two-Factor Authentication (2FA)? = 79 Yes, as of version 1.1.1, the plugin is fully compatible with Wordfence, including its 2FA feature. Facial recognition runs first, followed by 2FA if enabled. 80 78 81 == Screenshots == 79 82 … … 83 86 84 87 == Changelog == 88 89 = 1.1.1 - 2025-03-09 = 90 * Added compatibility with Wordfence, including its Two-Factor Authentication (2FA) feature. Facial recognition now runs before 2FA for enhanced security. 85 91 86 92 = 1.1.0 - 2025-03-07 = … … 111 117 112 118 == Upgrade Notice == 119 120 = 1.1.1 = 121 This update adds full compatibility with Wordfence, including its 2FA feature. Facial recognition now runs before 2FA, ensuring seamless integration. Highly recommended update. 113 122 114 123 = 1.1.0 =
Note: See TracChangeset
for help on using the changeset viewer.