| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | echo 'You are not allowed to access this page directly.'; |
| 5 | 5 | exit; |
| 6 | 6 | } |
| 7 | 7 | |
| 8 | -define('LOGINIZER_VERSION', '2.0.9'); | |
| 8 | +define('LOGINIZER_VERSION', '2.0.7'); | |
| 9 | 9 | define('LOGINIZER_DIR', dirname(LOGINIZER_FILE)); |
| 10 | 10 | define('LOGINIZER_URL', plugins_url('', LOGINIZER_FILE)); |
| 11 | 11 | define('LOGINIZER_PRO_URL', 'https://loginizer.com/features#compare'); |
| 12 | 12 | define('LOGINIZER_PRICING_URL', 'https://loginizer.com/pricing'); |
| @@ -332,22 +332,21 @@ | ||
| 332 | 332 | // Is called before displaying the error message so that we dont show that the username is wrong or the password |
| 333 | 333 | // Update Error message |
| 334 | 334 | add_action('wp_login_errors', 'loginizer_error_handler', 10001, 2); |
| 335 | 335 | add_action('woocommerce_login_failed', 'loginizer_woocommerce_error_handler', 10001); |
| 336 | - add_action('wp_login', 'loginizer_login_success', 11, 2); | |
| 337 | - add_action('rsssl_two_factor_user_authenticated', 'loginizer_rsssl_2fa_success'); | |
| 336 | + add_action('wp_login', 'loginizer_login_success', 10, 2); | |
| 338 | 337 | |
| 339 | 338 | if(!empty($loginizer['ultimate-member-active'])){ |
| 340 | 339 | add_action('wp_login_failed', 'loginizer_ultimatemember_error_handler', 10001); |
| 341 | 340 | } |
| 342 | 341 | |
| 343 | - if(!empty($_COOKIE['lz_social_error']) && !empty($loginizer['social_settings'])){ | |
| 342 | + if(!empty($_COOKIE['lz_social_error']) && !empty($loginizer['social_settings']) && !loginizer_is_blacklisted()){ | |
| 344 | 343 | add_filter('wp_login_errors', 'loginizer_social_login_error_handler', 10000, 2); |
| 345 | 344 | } |
| 346 | 345 | } |
| 347 | 346 | |
| 348 | 347 | // Social Login Form Actions |
| 349 | - if(!empty($loginizer['social_settings'])){ | |
| 348 | + if(!empty($loginizer['social_settings']) && !loginizer_is_blacklisted()){ | |
| 350 | 349 | if(!empty($loginizer['social_settings']['login']['login_form'])){ |
| 351 | 350 | add_action('login_form', 'loginizer_social_btn_login'); |
| 352 | 351 | } |
| 353 | 352 | } |
| @@ -637,12 +636,8 @@ | ||
| 637 | 636 | |
| 638 | 637 | } |
| 639 | 638 | } |
| 640 | 639 | |
| 641 | -function loginizer_rsssl_2fa_success($user){ | |
| 642 | - loginizer_login_success('', $user); | |
| 643 | -} | |
| 644 | - | |
| 645 | 640 | function loginizer_login_success($user_login, $user) { |
| 646 | 641 | global $wp_version, $loginizer; |
| 647 | 642 | |
| 648 | 643 | loginizer_update_attempt_stats(1); |
| @@ -806,12 +801,8 @@ | ||
| 806 | 801 | |
| 807 | 802 | // Handles social login URL |
| 808 | 803 | function loginizer_social_login_error_handler($errors = '', $redirect_to = ''){ |
| 809 | 804 | global $loginizer; |
| 810 | - | |
| 811 | - if(loginizer_is_blacklisted()){ | |
| 812 | - return $errors; | |
| 813 | - } | |
| 814 | 805 | |
| 815 | 806 | loginizer_get_social_error(); |
| 816 | 807 | |
| 817 | 808 | if(empty($loginizer['social_errors'])){ |