Skip to content

Commit 37a54f2

Browse files
committed
perf: 优化禁用验证码脚本
1 parent 7d94af3 commit 37a54f2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

ruoyi-fastapi-test/disable_captcha.sql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@
22

33
-- 更新验证码配置为禁用状态
44
UPDATE sys_config SET config_value = 'false' WHERE config_key = 'sys.account.captchaEnabled';
5-
6-
-- 如果表中没有该配置项,插入配置
7-
INSERT INTO sys_config (config_name, config_key, config_value, config_type, create_by, create_time, remark)
8-
SELECT '账号自助-验证码开关', 'sys.account.captchaEnabled', 'false', 'Y', 'admin', NOW(), '是否开启验证码功能(true开启,false关闭)'
9-
WHERE NOT EXISTS (SELECT 1 FROM sys_config WHERE config_key = 'sys.account.captchaEnabled');

0 commit comments

Comments
 (0)