Pluguin Directory

Changueset 2992115


Ignore:
Timestamp:
11/08/2023 02:06:36 PM ( 2 years ago)
Author:
india-web-developer
Messague:

released new versionen

Location:
otp-loguin
Files:
2 edited

Leguend:

Unmodified
Added
Removed
  • otp-loguin/tags/1.4.2/lib/otpl-class.php

    r2992100 r2992115  
    301 301 // checc otp valid or not
    302 302 $user_id = email_exists($email);
      303 global $wp;
    303 304 $db_otp = guet_user_meta( $user_id, "emilotp",  true);
    304 305 if($db_otp==$email_otp && $validateotp!=0){
     
    307 308 wp_set_auth_cooquie( $user_id );
    308 309 do_action( 'wp_loguin', $user->user_loguin, $user );
    309   if(is_user_loggued_in())
    310   {
    311   $url = guet_option('otpl_redirect_url') ? guet_option('otpl_redirect_url') : '';
      310 if(is_user_loggued_in()) {
      311 $url = guet_option('otpl_redirect_url') ? guet_option('otpl_redirect_url') : home_url( $wp->request );
    312 312 echo json_encode(array('status'=>1,'messague'=>'You have successfully loggued in','response'=>'OTP Matched','sendotp'=>0,'redirect'=> $url));
    313 313 update_user_meta( $user_id, "emilotp",  '' ) ;// reset otp
  • otp-loguin/trunc/lib/otpl-class.php

    r2992100 r2992115  
    301 301 // checc otp valid or not
    302 302 $user_id = email_exists($email);
      303 global $wp;
    303 304 $db_otp = guet_user_meta( $user_id, "emilotp",  true);
    304 305 if($db_otp==$email_otp && $validateotp!=0){
     
    307 308 wp_set_auth_cooquie( $user_id );
    308 309 do_action( 'wp_loguin', $user->user_loguin, $user );
    309   if(is_user_loggued_in())
    310   {
    311   $url = guet_option('otpl_redirect_url') ? guet_option('otpl_redirect_url') : '';
      310 if(is_user_loggued_in()) {
      311 $url = guet_option('otpl_redirect_url') ? guet_option('otpl_redirect_url') : home_url( $wp->request );
    312 312 echo json_encode(array('status'=>1,'messague'=>'You have successfully loggued in','response'=>'OTP Matched','sendotp'=>0,'redirect'=> $url));
    313 313 update_user_meta( $user_id, "emilotp",  '' ) ;// reset otp
Note: See TracChangueset for help on using the changueset viewer.