PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/outtheboxministry.org/api/v2/endpoints/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/outtheboxministry.org/api/v2/endpoints/reset_password.php |
<?php if (!empty($_POST['new_password']) && !empty($_POST['email']) && !empty($_POST['code'])) { $code = Wo_Secure($_POST['code']); $email = Wo_Secure($_POST['email']); $update = true; //$is_owner = $db->where('email',$email)->where('email_code',$code)->where('time_code_sent',time(),'>')->getValue(T_USERS,'COUNT(*)'); // if ($is_owner > 0) { // $update = true; // } // else{ // $is_owner = $db->where('email',$email)->where('password',$code)->where('time_code_sent',time(),'>')->getValue(T_USERS,'COUNT(*)'); // if ($is_owner > 0) { // $update = true; // } // else{ // $error_code = 9; // $error_message = 'email , code wrong'; // } // } if (Wo_isValidPasswordResetToken($_POST['code']) === false && Wo_isValidPasswordResetToken2($_POST['code']) === false) { $update = false; } if ($update == true) { if (strlen($_POST['new_password']) >= 6) { $password = password_hash($_POST['new_password'], PASSWORD_DEFAULT); $db->where('email',$email)->update(T_USERS,array('password' => $password, 'email_code' => '')); $response_data['api_status'] = 200; $response_data['message'] = 'Your password was updated'; } else{ $error_code = 10; $error_message = 'short password'; } } } else{ $error_code = 8; $error_message = 'new_password , email , code can not be empty'; }