From 9119bf7e9a2f22e0fefd47dd4a64660690a1b512 Mon Sep 17 00:00:00 2001 From: Rhilip Date: Mon, 22 Jul 2019 16:04:37 +0800 Subject: [PATCH] perf(captcha): simple captcha input --- apps/views/auth/login.php | 15 +-------------- apps/views/auth/recover.php | 15 +-------------- apps/views/auth/register.php | 30 +++++++----------------------- apps/views/layout/captcha.php | 24 +++++++++++++++++++++--- apps/views/links/apply.php | 15 +-------------- 5 files changed, 31 insertions(+), 68 deletions(-) diff --git a/apps/views/auth/login.php b/apps/views/auth/login.php index 6ad131a..16b7a33 100644 --- a/apps/views/auth/login.php +++ b/apps/views/auth/login.php @@ -59,20 +59,7 @@
Your 2FA code, leave it blank if you haven't enable 2FA.
-
- -
-
-
- - -
-
Case insensitive.
-
- insert('layout/captcha') ?> -
-
+ insert('layout/captcha') ?>
Advanced Options diff --git a/apps/views/auth/recover.php b/apps/views/auth/recover.php index 4da859a..3a9ea86 100644 --- a/apps/views/auth/recover.php +++ b/apps/views/auth/recover.php @@ -30,20 +30,7 @@
The Email when your sign account.
-
- -
-
-
- - -
-
Case insensitive.
-
- insert('layout/captcha') ?> -
-
+ insert('layout/captcha') ?>
diff --git a/apps/views/auth/register.php b/apps/views/auth/register.php index 79f8235..52ac7db 100644 --- a/apps/views/auth/register.php +++ b/apps/views/auth/register.php @@ -107,34 +107,18 @@
-
- -
-
-
- - -
-
Case insensitive.
-
- insert('layout/captcha') ?> -
-
+ insert('layout/captcha') ?>
-
- +
+ +
-
- +
+ +
-
diff --git a/apps/views/layout/captcha.php b/apps/views/layout/captcha.php index 3151a79..09b843d 100644 --- a/apps/views/layout/captcha.php +++ b/apps/views/layout/captcha.php @@ -4,9 +4,27 @@ * User: Rhilip * Date: 2019/3/9 * Time: 16:49 + * + * */ + +$inline = $inline ?? false; ?> -
- Captcha Image + +
+ +
+
+
+ + +
+
Case insensitive.
+
+
+ Captcha Image +
+
diff --git a/apps/views/links/apply.php b/apps/views/links/apply.php index 589183b..8908e55 100644 --- a/apps/views/links/apply.php +++ b/apps/views/links/apply.php @@ -77,20 +77,7 @@
-
- -
-
-
- - -
-
Case insensitive.
-
- insert('layout/captcha') ?> -
-
+ insert('layout/captcha', ['inline' => true]) ?>