Skip to content

Commit

Permalink
Merge pull request #25 from wpdev10/master
Browse files Browse the repository at this point in the history
Changes while testing
  • Loading branch information
wpdev10 authored May 3, 2019
2 parents bab2690 + ccf1687 commit 0e7b1bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions includes/class-uwp-recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ public function add_scripts()

public function login_authenticate($user){

if(1 != uwp_get_option('enable_recaptcha_in_wp_register_form') || !uwp_recaptcha_enabled()){
if(isset( $_POST['uwp_login_nonce'] )){ // ignore UWP login form submission
return $user;
}

if(1 != uwp_get_option('enable_recaptcha_in_wp_login_form') || !uwp_recaptcha_enabled()){
return $user;
}

Expand Down Expand Up @@ -164,7 +168,7 @@ public function login_authenticate($user){

public function registration_errors($errors){

if(1 != uwp_get_option('enable_recaptcha_in_wp_login_form') || !uwp_recaptcha_enabled()){
if(1 != uwp_get_option('enable_recaptcha_in_wp_register_form') || !uwp_recaptcha_enabled()){
return $errors;
}

Expand Down

0 comments on commit 0e7b1bd

Please sign in to comment.