Changeset 3382491
- Timestamp:
- 10/22/2025 10:01:20 AM (5 months ago)
- Location:
- keyless-auth
- Files:
-
- 65 added
- 4 edited
-
tags/3.0.4 (added)
-
tags/3.0.4/LICENSE (added)
-
tags/3.0.4/assets (added)
-
tags/3.0.4/assets/css (added)
-
tags/3.0.4/assets/css/2fa-frontend.css (added)
-
tags/3.0.4/assets/css/admin-style.css (added)
-
tags/3.0.4/assets/css/forms-enhanced-dark.css (added)
-
tags/3.0.4/assets/css/forms-enhanced-light.css (added)
-
tags/3.0.4/assets/css/forms-enhanced.css (added)
-
tags/3.0.4/assets/css/style-back-end.css (added)
-
tags/3.0.4/assets/css/style-front-end.css (added)
-
tags/3.0.4/assets/js (added)
-
tags/3.0.4/assets/js/2fa-frontend.js (added)
-
tags/3.0.4/assets/js/admin-script.js (added)
-
tags/3.0.4/assets/js/qrcode.js (added)
-
tags/3.0.4/assets/js/qrcode.min.js (added)
-
tags/3.0.4/assets/logo_150_150.png (added)
-
tags/3.0.4/autoload.php (added)
-
tags/3.0.4/includes (added)
-
tags/3.0.4/includes/Admin (added)
-
tags/3.0.4/includes/Admin/Admin.php (added)
-
tags/3.0.4/includes/Admin/Admin.php.backup (added)
-
tags/3.0.4/includes/Admin/Ajax (added)
-
tags/3.0.4/includes/Admin/Ajax/TwoFAAjaxHandler.php (added)
-
tags/3.0.4/includes/Admin/Ajax/index.php (added)
-
tags/3.0.4/includes/Admin/Assets (added)
-
tags/3.0.4/includes/Admin/Assets/AssetLoader.php (added)
-
tags/3.0.4/includes/Admin/Assets/index.php (added)
-
tags/3.0.4/includes/Admin/MenuManager.php (added)
-
tags/3.0.4/includes/Admin/Pages (added)
-
tags/3.0.4/includes/Admin/Pages/DashboardPage.php (added)
-
tags/3.0.4/includes/Admin/Pages/HelpPage.php (added)
-
tags/3.0.4/includes/Admin/Pages/MailLogsPage.php (added)
-
tags/3.0.4/includes/Admin/Pages/OptionsPage.php (added)
-
tags/3.0.4/includes/Admin/Pages/SmtpPage.php (added)
-
tags/3.0.4/includes/Admin/Pages/TemplatesPage.php (added)
-
tags/3.0.4/includes/Admin/Pages/TwoFAUsersPage.php (added)
-
tags/3.0.4/includes/Admin/Pages/index.php (added)
-
tags/3.0.4/includes/Admin/Settings (added)
-
tags/3.0.4/includes/Admin/Settings/SettingsManager.php (added)
-
tags/3.0.4/includes/Admin/Settings/index.php (added)
-
tags/3.0.4/includes/Admin/index.php (added)
-
tags/3.0.4/includes/Core (added)
-
tags/3.0.4/includes/Core/Core.php (added)
-
tags/3.0.4/includes/Core/Database.php (added)
-
tags/3.0.4/includes/Core/Main.php (added)
-
tags/3.0.4/includes/Core/Notices.php (added)
-
tags/3.0.4/includes/Core/index.php (added)
-
tags/3.0.4/includes/Email (added)
-
tags/3.0.4/includes/Email/MailLogger.php (added)
-
tags/3.0.4/includes/Email/SMTP.php (added)
-
tags/3.0.4/includes/Email/Templates.php (added)
-
tags/3.0.4/includes/Email/index.php (added)
-
tags/3.0.4/includes/Security (added)
-
tags/3.0.4/includes/Security/TwoFA (added)
-
tags/3.0.4/includes/Security/TwoFA/Core.php (added)
-
tags/3.0.4/includes/Security/TwoFA/Frontend.php (added)
-
tags/3.0.4/includes/Security/TwoFA/TOTP.php (added)
-
tags/3.0.4/includes/Security/TwoFA/index.php (added)
-
tags/3.0.4/includes/Security/index.php (added)
-
tags/3.0.4/includes/index.php (added)
-
tags/3.0.4/keyless-auth.php (added)
-
tags/3.0.4/languages (added)
-
tags/3.0.4/languages/keyless-auth.pot (added)
-
tags/3.0.4/readme.txt (added)
-
trunk/includes/Admin/Pages/OptionsPage.php (modified) (2 diffs)
-
trunk/includes/Core/Core.php (modified) (1 diff)
-
trunk/keyless-auth.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
keyless-auth/trunk/includes/Admin/Pages/OptionsPage.php
r3380037 r3382491 131 131 <input type="checkbox" id="chrmrtns_kla_enable_wp_login" name="chrmrtns_kla_enable_wp_login" value="1" <?php checked($enable_wp_login, '1'); ?> /> 132 132 <p class="description"> 133 <?php esc_html_e('Add a magic login field to the WordPress login page (wp-login.php).', 'keyless-auth'); ?> 134 </p> 133 <?php esc_html_e('Add a magic login field to the WordPress login page (wp-login.php). Note: This option is incompatible with the wp-login.php redirect option below.', 'keyless-auth'); ?> 134 </p> 135 <?php 136 $redirect_wp_login = get_option('chrmrtns_kla_redirect_wp_login', '0') === '1'; 137 if ($enable_wp_login === '1' && $redirect_wp_login): ?> 138 <div class="notice notice-warning inline" style="margin: 10px 0 0 0; padding: 10px;"> 139 <p><strong><?php esc_html_e('Notice:', 'keyless-auth'); ?></strong> 140 <?php esc_html_e('This option is currently inactive because "Redirect all wp-login.php requests" is enabled below. The redirect takes priority and prevents the magic login field from appearing on wp-login.php.', 'keyless-auth'); ?></p> 141 <p style="margin-bottom: 0;"><?php esc_html_e('To use magic login on wp-login.php, disable the redirect option below.', 'keyless-auth'); ?></p> 142 </div> 143 <?php endif; ?> 135 144 </td> 136 145 </tr> … … 154 163 <label for="chrmrtns_kla_redirect_wp_login"><?php esc_html_e('Redirect all wp-login.php requests to custom login page', 'keyless-auth'); ?></label> 155 164 <p class="description"> 156 <?php esc_html_e('When enabled, all requests to wp-login.php will be redirected to your custom login page. Emergency bypass: add ?kla_use_wp_login=1 to access wp-login.php directly.', 'keyless-auth'); ?>165 <?php esc_html_e('When enabled, all requests to wp-login.php will be redirected to your custom login page. Note: When enabled, this automatically disables magic login integration on wp-login.php since users will be redirected away. Emergency bypass: add ?kla_use_wp_login=1 to access wp-login.php directly.', 'keyless-auth'); ?> 157 166 </p> 158 167 </td> -
keyless-auth/trunk/includes/Core/Core.php
r3382425 r3382491 34 34 add_shortcode('keyless-auth-full', array($this, 'render_full_login_form')); 35 35 36 // wp-login.php integration - only add hooks if enabled 37 if (get_option('chrmrtns_kla_enable_wp_login', '0') === '1') { 36 // wp-login.php integration - only add hooks if enabled AND redirect is disabled 37 // These options are mutually exclusive: can't add magic login field to wp-login.php 38 // if we're redirecting away from it 39 $enable_wp_login = get_option('chrmrtns_kla_enable_wp_login', '0') === '1'; 40 $redirect_wp_login = get_option('chrmrtns_kla_redirect_wp_login', '0') === '1'; 41 42 if ($enable_wp_login && !$redirect_wp_login) { 38 43 add_action('login_footer', array($this, 'chrmrtns_kla_add_wp_login_field')); 39 44 add_action('login_init', array($this, 'chrmrtns_kla_handle_wp_login_submission')); -
keyless-auth/trunk/keyless-auth.php
r3382425 r3382491 4 4 * Plugin URI: https://github.com/chrmrtns/keyless-auth 5 5 * Description: Enhanced passwordless authentication allowing users to login securely without passwords via email magic links. Fork of Passwordless Login by Cozmoslabs with additional security features. 6 * Version: 3.0. 36 * Version: 3.0.4 7 7 * Author: Chris Martens 8 8 * Author URI: https://github.com/chrmrtns … … 38 38 39 39 // Define plugin constants 40 define('CHRMRTNS_KLA_VERSION', '3.0. 3');40 define('CHRMRTNS_KLA_VERSION', '3.0.4'); 41 41 define('CHRMRTNS_KLA_PLUGIN_DIR', plugin_dir_path(__FILE__)); 42 42 define('CHRMRTNS_KLA_PLUGIN_URL', plugin_dir_url(__FILE__)); -
keyless-auth/trunk/readme.txt
r3382425 r3382491 6 6 Requires at least: 3.9 7 7 Tested up to: 6.8 8 Stable tag: 3.0. 38 Stable tag: 3.0.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 305 305 306 306 == Changelog == 307 308 = 3.0.4 = 309 * FIX: Critical - wp-login.php options conflict - cannot login when both "Enable Login on wp-login.php" and "Redirect wp-login.php" are active 310 * IMPROVEMENT: Added mutual exclusion logic - redirect option now automatically disables wp-login.php magic login integration 311 * IMPROVEMENT: Added admin warning notice explaining when options conflict and why one is disabled 312 * IMPROVEMENT: Enhanced help text under both options explaining their incompatibility 313 * UX: Clear visual feedback when conflicting options are enabled with actionable guidance 314 * TECHNICAL: wp-login.php integration hooks only fire when redirect is disabled to prevent login issues 307 315 308 316 = 3.0.3 =
Note: See TracChangeset
for help on using the changeset viewer.