From 7fe50788a58be290474e62254cfd2a1f44b30a38 Mon Sep 17 00:00:00 2001 From: RockYang Date: Tue, 13 Aug 2024 10:01:07 +0800 Subject: [PATCH] add Captcha components --- database/update-v4.1.3.sql | 2 + web/src/components/Captcha.vue | 144 +++++++++++++++++++++++++++++++++ web/src/components/SendMsg.vue | 138 +++---------------------------- 3 files changed, 158 insertions(+), 126 deletions(-) create mode 100644 database/update-v4.1.3.sql create mode 100644 web/src/components/Captcha.vue diff --git a/database/update-v4.1.3.sql b/database/update-v4.1.3.sql new file mode 100644 index 00000000..05f5cd3f --- /dev/null +++ b/database/update-v4.1.3.sql @@ -0,0 +1,2 @@ +ALTER TABLE `chatgpt_users` ADD `mobile` CHAR(11) NULL COMMENT '手机号' AFTER `username`; +ALTER TABLE `chatgpt_users` ADD `email` VARCHAR(50) NULL COMMENT '邮箱地址' AFTER `mobile`; \ No newline at end of file diff --git a/web/src/components/Captcha.vue b/web/src/components/Captcha.vue new file mode 100644 index 00000000..322ae0c3 --- /dev/null +++ b/web/src/components/Captcha.vue @@ -0,0 +1,144 @@ + + + + + \ No newline at end of file diff --git a/web/src/components/SendMsg.vue b/web/src/components/SendMsg.vue index c76cb100..72a30052 100644 --- a/web/src/components/SendMsg.vue +++ b/web/src/components/SendMsg.vue @@ -1,48 +1,20 @@ - \ No newline at end of file