From c380ea0bc51b5fd66a9ce1d0918d8a7139303e1f Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Tue, 15 May 2018 13:00:21 -0400 Subject: [PATCH] Update password --- admin/password.php | 58 +++++++++++----------------------------------- 1 file changed, 13 insertions(+), 45 deletions(-) diff --git a/admin/password.php b/admin/password.php index ddec4903..c5995c52 100644 --- a/admin/password.php +++ b/admin/password.php @@ -47,22 +47,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') { // Verify security image if ($hesk_settings['secimg_use']) { // Using ReCaptcha? - if ($hesk_settings['recaptcha_use'] == 1) { - require_once(HESK_PATH . 'inc/recaptcha/recaptchalib.php'); - - $resp = recaptcha_check_answer($hesk_settings['recaptcha_private_key'], - hesk_getClientIP(), - hesk_POST('recaptcha_challenge_field', ''), - hesk_POST('recaptcha_response_field', '') - ); - - if ($resp->is_valid) { - //$_SESSION['img_a_verified']=true; - } else { - $hesk_error_buffer['mysecnum'] = $hesklang['recaptcha_error']; - } - } // Using ReCaptcha API v2? - elseif ($hesk_settings['recaptcha_use'] == 2) { + if ($hesk_settings['recaptcha_use']) { require(HESK_PATH . 'inc/recaptcha/recaptchalib_v2.php'); $resp = null; @@ -215,7 +200,7 @@ elseif (isset($_GET['h'])) { } // Tell header to load reCaptcha API if needed -if ($hesk_settings['recaptcha_use'] == 2) { +if ($hesk_settings['recaptcha_use']) { define('RECAPTCHA', 1); } @@ -230,7 +215,7 @@ require_once(HESK_PATH . 'inc/headerAdmin.inc.php');

-
+
- -
+ +
+