← All changes
|
includes/widgets/Login_Register_Form/Social_Login_Handler.php
+4
-4
51.1.63
→
51.1.86
View file →
| @@ -148,9 +148,9 @@ | ||
| 148 | 148 | 'user-agent' => 'King Addons Social Login/1.0' |
| 149 | 149 | ]); |
| 150 | 150 | |
| 151 | 151 | if (is_wp_error($response)) { |
| 152 | - error_log('King Addons Social Login: Google token verification failed: ' . $response->get_error_message()); | |
| 152 | + // error_log('King Addons Social Login: Google token verification failed: ' . $response->get_error_message()); | |
| 153 | 153 | return false; |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | $body = wp_remote_retrieve_body($response); |
| @@ -193,9 +193,9 @@ | ||
| 193 | 193 | 'user-agent' => 'King Addons Social Login/1.0' |
| 194 | 194 | ]); |
| 195 | 195 | |
| 196 | 196 | if (is_wp_error($response)) { |
| 197 | - error_log('King Addons Social Login: Facebook token verification failed: ' . $response->get_error_message()); | |
| 197 | + // error_log('King Addons Social Login: Facebook token verification failed: ' . $response->get_error_message()); | |
| 198 | 198 | return false; |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | $verify_data = json_decode(wp_remote_retrieve_body($response), true); |
| @@ -214,9 +214,9 @@ | ||
| 214 | 214 | 'user-agent' => 'King Addons Social Login/1.0' |
| 215 | 215 | ]); |
| 216 | 216 | |
| 217 | 217 | if (is_wp_error($user_response)) { |
| 218 | - error_log('King Addons Social Login: Facebook user data request failed: ' . $user_response->get_error_message()); | |
| 218 | + // error_log('King Addons Social Login: Facebook user data request failed: ' . $user_response->get_error_message()); | |
| 219 | 219 | return false; |
| 220 | 220 | } |
| 221 | 221 | |
| 222 | 222 | $user_data = json_decode(wp_remote_retrieve_body($user_response), true); |
| @@ -248,9 +248,9 @@ | ||
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | // Additional security checks for social login |
| 251 | 251 | if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { |
| 252 | - error_log("King Addons Security: Invalid email from {$provider}: {$email}"); | |
| 252 | + // error_log("King Addons Security: Invalid email from {$provider}: {$email}"); | |
| 253 | 253 | return [ |
| 254 | 254 | 'success' => false, |
| 255 | 255 | 'message' => esc_html__('Invalid email address from social provider.', 'king-addons') |
| 256 | 256 | ]; |