Plugin Directory

Changeset 3442150


Ignore:
Timestamp:
01/19/2026 01:52:59 AM (2 months ago)
Author:
pickplugins
Message:

version update

Location:
user-verification/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • user-verification/trunk/readme.md

    r3425414 r3442150  
    55    Requires at least: 4.1
    66    Tested up to: 6.9
    7     Stable tag: 2.0.44
     7    Stable tag: 2.0.45
    88    License: GPLv2 or later
    99    License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • user-verification/trunk/templates/email-otp-login-form/hook.php

    r3425414 r3442150  
    1111    $steps = (int) $request->get_param('steps');
    1212    $otp_code =  $request->get_param('otp');
     13    $_wpnonce =  $request->get_param('_wpnonce');
    1314    // $gRecaptchaResponse = $request->get_param('g-recaptcha-response');
     15
     16
     17        if (!wp_verify_nonce($_wpnonce, 'wp_rest')) {
     18
     19         
     20
     21  $response['errors']['invalidRequest'] = __('Invalid request', 'user-verification');
     22        return $response;
     23
     24};
    1425
    1526
     
    137148        $saved_otp = get_user_meta($user_id, 'uv_otp', true);
    138149
    139 
     150        if(empty($otp_code)){
     151            $UserVerificationStats->add_stats('wrong_email_otp_used');
     152            $response['errors']['wrong_otp'] = __('Wrong OTP used.', 'user-verification');
     153            return $response;
     154        }
     155
     156
     157        if(empty($saved_otp)){
     158            $UserVerificationStats->add_stats('wrong_email_otp_used');
     159            $response['errors']['wrong_otp'] = __('OTP missmatch.', 'user-verification');
     160            return $response;
     161        }
    140162
    141163
  • user-verification/trunk/user-verification.php

    r3425414 r3442150  
    44Plugin URI: http://pickplugins.com
    55Description: Verify user before access on your website.
    6 Version: 2.0.44
     6Version: 2.0.45
    77Text Domain: user-verification
    88Domain Path: /languages
Note: See TracChangeset for help on using the changeset viewer.