From 5b0d04b70229b438b555cfa34d450b5c5570d196 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 4 Dec 2024 01:37:17 +0000 Subject: [PATCH] (feat): added captcha for invalid login --- Views/template/header.phtml | 3 --- Views/template/loginError.phtml | 18 ++++++++++++++++++ Views/template/loginModal.phtml | 22 ++++++++++++++++------ index.php | 2 +- logincontroller.php | 28 +++++++++++++++++++++++----- 5 files changed, 58 insertions(+), 15 deletions(-) diff --git a/Views/template/header.phtml b/Views/template/header.phtml index 703c746..521f1c2 100644 --- a/Views/template/header.phtml +++ b/Views/template/header.phtml @@ -88,9 +88,6 @@
loginError) { - require_once('Views/template/loginError.phtml'); - } if(!$view->user->isLoggedIn()) { require_once('Views/template/loginModal.phtml'); } diff --git a/Views/template/loginError.phtml b/Views/template/loginError.phtml index e69de29..ac49647 100644 --- a/Views/template/loginError.phtml +++ b/Views/template/loginError.phtml @@ -0,0 +1,18 @@ +loginError ?> +
+ +
+ " readonly> + +
+ + +
+ + +
+
\ No newline at end of file diff --git a/Views/template/loginModal.phtml b/Views/template/loginModal.phtml index 5225248..2e1c950 100644 --- a/Views/template/loginModal.phtml +++ b/Views/template/loginModal.phtml @@ -1,7 +1,11 @@ - -