From 890e312a77f7e758bab3c2b9fd80676e7eb11a42 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 7 Sep 2019 11:33:39 -0600 Subject: [PATCH] Update exec.php --- app/edit/index.php | 18 ++++++++++++++---- app/exec/exec.php | 2 +- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/app/edit/index.php b/app/edit/index.php index a463ef13bf..5a7509f95d 100644 --- a/app/edit/index.php +++ b/app/edit/index.php @@ -90,6 +90,12 @@ $_SESSION['keys'][$key_name] = bin2hex(random_bytes(32)); $_SESSION['token'] = hash_hmac('sha256', $key_name, $_SESSION['keys'][$key_name]); +//generate the captcha image + $_SESSION['captcha'] = generate_password(7, 2); + $captcha = new captcha; + $captcha->code = $_SESSION['captcha']; + $image_base64 = $captcha->image_base64(); + ?> @@ -200,8 +206,12 @@ - - + + + @@ -209,7 +219,7 @@
- - code = $_SESSION['captcha'];