From 53223d37b7d526814298ea3d9d60d4e375c52060 Mon Sep 17 00:00:00 2001 From: Manish Bisht Date: Sat, 18 Mar 2017 23:19:34 +0530 Subject: [PATCH] upgraded google recpatcha with google invisble recaptcha Signed-off-by: Manish Bisht --- js/functions.js | 13 +++------- .../plugins/auth/AuthenticationCookie.php | 26 +++++++++---------- .../plugin/auth/AuthenticationCookieTest.php | 7 ++--- 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/js/functions.js b/js/functions.js index 42a7a948bcfa..ff5fa38dbbf3 100644 --- a/js/functions.js +++ b/js/functions.js @@ -5027,17 +5027,10 @@ function toggleDatepickerIfInvalid($td, $input_field) { } /* - * Function to enable the 'Go' button on login. + * Function to submit the login form after validation is done. */ -function loginButtonEnable() { - $('#input_go').prop('disabled', false); -} - -/* - * Function to disable the 'Go' button on login. - */ -function loginButtonDisable() { - $('#input_go').prop('disabled', true); +function recaptchaCallback() { + $('#login_form').submit(); } /** diff --git a/libraries/plugins/auth/AuthenticationCookie.php b/libraries/plugins/auth/AuthenticationCookie.php index 92b491f78dc1..4c3fb6c159c1 100644 --- a/libraries/plugins/auth/AuthenticationCookie.php +++ b/libraries/plugins/auth/AuthenticationCookie.php @@ -170,7 +170,7 @@ public function auth() echo '
-