| @@ -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.8'); | |
| 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,10 +332,9 @@ | ||
| 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 | } |
| @@ -635,12 +634,8 @@ | ||
| 635 | 634 | $loginizer['retries_left'] = ($loginizer['max_retries'] - ($result['count'] % $loginizer['max_retries'])); |
| 636 | 635 | $loginizer['retries_left'] = $loginizer['retries_left'] == $loginizer['max_retries'] ? 0 : $loginizer['retries_left']; |
| 637 | 636 | |
| 638 | 637 | } |
| 639 | -} | |
| 640 | - | |
| 641 | -function loginizer_rsssl_2fa_success($user){ | |
| 642 | - loginizer_login_success('', $user); | |
| 643 | 638 | } |
| 644 | 639 | |
| 645 | 640 | function loginizer_login_success($user_login, $user) { |
| 646 | 641 | global $wp_version, $loginizer; |