Plugin Directory

Changeset 3402114


Ignore:
Timestamp:
11/24/2025 10:55:47 PM (3 months ago)
Author:
chrmrtns
Message:

Version 3.2.4: Fix critical error when entering unregistered email - WP_Error namespace prefix

Location:
keyless-auth
Files:
71 added
4 edited

Legend:

Unmodified
Added
Removed
  • keyless-auth/trunk/includes/Core/Core.php

    r3393700 r3402114  
    504504        // Verify nonce
    505505        if (!isset($_POST['nonce']) || !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST['nonce'])), 'chrmrtns_kla_keyless_login_request')) {
    506             $error = new WP_Error('nonce_failed', __('Security check failed. Please try again.', 'keyless-auth'));
     506            $error = new \WP_Error('nonce_failed', __('Security check failed. Please try again.', 'keyless-auth'));
    507507            update_option('chrmrtns_kla_login_request_error', $error);
    508508            return;
     
    515515       
    516516        if (!$user) {
    517             $error = new WP_Error('invalid_user', __('The username or email you provided do not exist. Please try again.', 'keyless-auth'));
     517            $error = new \WP_Error('invalid_user', __('The username or email you provided do not exist. Please try again.', 'keyless-auth'));
    518518            update_option('chrmrtns_kla_login_request_error', $error);
    519519            return;
     
    528528        // Generate and send login link
    529529        if (!$this->send_login_email($user)) {
    530             $error = new WP_Error('email_failed', __('There was a problem sending your email. Please try again or contact an admin.', 'keyless-auth'));
     530            $error = new \WP_Error('email_failed', __('There was a problem sending your email. Please try again or contact an admin.', 'keyless-auth'));
    531531            update_option('chrmrtns_kla_login_request_error', $error);
    532532        }
  • keyless-auth/trunk/includes/Email/SMTP.php

    r3380037 r3402114  
    402402            $from_email = !empty($options['from_email']) ? $options['from_email'] : $phpmailer->Username;
    403403            $phpmailer->From = $from_email;
     404            // Set Sender (Envelope-From) to match From for better SPF/DMARC alignment
     405            $phpmailer->Sender = $from_email;
    404406
    405407            // Set the Message-ID domain to match the From email domain for better deliverability
  • keyless-auth/trunk/keyless-auth.php

    r3393700 r3402114  
    44* Plugin URI: https://github.com/chrmrtns/keyless-auth
    55* Description: Enhanced passwordless authentication with magic email links, two-factor authentication, SMTP integration, WooCommerce integration, and comprehensive security features for WordPress.
    6 * Version: 3.2.3
     6* Version: 3.2.4
    77* Author: Chris Martens
    88* Author URI: https://github.com/chrmrtns
     
    3838
    3939// Define plugin constants
    40 define('CHRMRTNS_KLA_VERSION', '3.2.3');
     40define('CHRMRTNS_KLA_VERSION', '3.2.4');
    4141define('CHRMRTNS_KLA_PLUGIN_DIR', plugin_dir_path(__FILE__));
    4242define('CHRMRTNS_KLA_PLUGIN_URL', plugin_dir_url(__FILE__));
  • keyless-auth/trunk/readme.txt

    r3393700 r3402114  
    66Requires at least: 3.9
    77Tested up to: 6.8
    8 Stable tag: 3.2.3
     8Stable tag: 3.2.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    315315
    316316== Changelog ==
     317
     318= 3.2.4 =
     319* FIX: Critical error when entering unregistered email in login form - Fixed missing namespace prefix for WP_Error class
     320* IMPROVEMENT: WordPress 6.9 email compatibility - Added Sender property for better SPF/DMARC alignment
     321* IMPROVEMENT: Envelope-From (Sender) now matches From address for improved email deliverability
     322* TECHNICAL: SMTP configuration now sets both From and Sender properties for authentication compliance
    317323
    318324= 3.2.3 =
Note: See TracChangeset for help on using the changeset viewer.