Skip to content

Commit

Permalink
ReCaptcha error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Bojan Petkovski committed May 12, 2013
1 parent e9f5a30 commit 4213c3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/plugins/auth/AuthenticationCookie.class.php
Expand Up @@ -329,6 +329,8 @@ public function auth()
*/
public function authCheck()
{
global $conn_error;

// Initialization
/**
* @global $GLOBALS['pma_auth_server'] the user provided server to
Expand Down Expand Up @@ -375,8 +377,9 @@ public function authCheck()

// Check if the captcha entered is valid, if not stop the login.
if ( !$resp->is_valid ) {
return false;
$conn_error = __('Entered captcha is wrong, try again!');
$_SESSION['last_valid_captcha'] = false;
return false;
} else {
$_SESSION['last_valid_captcha'] = true;
}
Expand Down

0 comments on commit 4213c3c

Please sign in to comment.