Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs committed Jun 22, 2023
2 parents c4a361e + 49748e1 commit 177431c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion friendly-captcha/modules/wordpress/wordpress_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function frcaptcha_wp_login_validate($user, $username, $password) {

$plugin = FriendlyCaptcha_Plugin::$instance;
if (!$plugin->is_configured() or !$plugin->get_wp_login_active()) {
return;
return $user;
}

$errorPrefix = '<strong>' . __( 'Error', 'wp-captcha' ) . '</strong> : ';
Expand Down
2 changes: 1 addition & 1 deletion friendly-captcha/modules/wordpress/wordpress_register.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function frcaptcha_wp_register_validate($user_login, $user_email, $errors) {

$plugin = FriendlyCaptcha_Plugin::$instance;
if (!$plugin->is_configured() or !$plugin->get_wp_register_active()) {
return;
return $errors;
}

$errorPrefix = '<strong>' . __( 'Error', 'wp-captcha' ) . '</strong> : ';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function frcaptcha_wp_reset_password_validate($val) {

$plugin = FriendlyCaptcha_Plugin::$instance;
if (!$plugin->is_configured() or !$plugin->get_wp_reset_password_active()) {
return;
return $val;
}

$errorPrefix = '<strong>' . __( 'Error', 'wp-captcha' ) . '</strong> : ';
Expand Down

0 comments on commit 177431c

Please sign in to comment.