Changeset 3344480
- Timestamp:
- 08/14/2025 09:04:49 AM (8 months ago)
- Location:
- buildecom/trunk
- Files:
-
- 3 edited
-
buildecom.php (modified) (1 diff)
-
inc/api/class-api-auth.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
buildecom/trunk/buildecom.php
r3344460 r3344480 7 7 * Plugin URI: https://buildecom.app/wp-plugin/ 8 8 * Description: The official WordPress plugin for BuildEcom. Build eCommerce mobile application through woocommerce and wordpress 9 * Version: 1.0. 99 * Version: 1.0.10 10 10 * Author: BuildEcom 11 11 * Author URI: https://buildecom.app -
buildecom/trunk/inc/api/class-api-auth.php
r3344460 r3344480 145 145 return buildecom_response_error('user_not_found', 'User not found', [], 400); 146 146 } 147 148 $emailVerification = get_user_meta($user->ID, 'email_confirmed', true); 149 if ($emailVerification) { 150 return buildecom_response_error('email_already_verified', 'Email Already Verified', [], 400); 151 } 152 147 148 $request_id = $request->get_header('X-Request-Id') ?: 'send-email-'.$user->ID.'-'.gmdate('YmdHi'); 149 if ( get_transient($request_id) ) { 150 return buildecom_response_success('email_already_sent', 'Email already sent just now.', []); 151 } 152 set_transient($request_id, 1, 60); 153 153 154 $code = buildecom_generate_password_reset_token(); 154 155 155 update_user_meta($user->ID, 'buildecom_email_verification_code', $code); 156 157 156 $this->send_confirmation_email($user, $code); 158 159 return buildecom_response_success('email_sent', 'Email sent successfully.', [ 160 'code' => $code, 161 ]); 157 158 return buildecom_response_success('email_sent', 'Email sent successfully.', []); 162 159 } 163 160 -
buildecom/trunk/readme.txt
r3344460 r3344480 4 4 Requires at least: 4.7 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 96 Stable tag: 1.0.10 7 7 License: GPL-2.0+ 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.