From 436fa186e605c204356660fe0c85dcf21de839fd Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 9 Sep 2021 11:37:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0ldap=E7=9A=84flyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V26__de1.3.sql | 9 +++++++++ frontend/src/views/login/index.vue | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/backend/src/main/resources/db/migration/V26__de1.3.sql b/backend/src/main/resources/db/migration/V26__de1.3.sql index c7bc96535d..10be30149f 100644 --- a/backend/src/main/resources/db/migration/V26__de1.3.sql +++ b/backend/src/main/resources/db/migration/V26__de1.3.sql @@ -29,3 +29,12 @@ ALTER TABLE `sys_user` ADD COLUMN `from` int(4) NOT NULL COMMENT '来源' AFTER INSERT INTO `sys_menu` VALUES (60, 1, 0, 1, '导入LDAP用户', 'system-user-import', 'system/user/imp-ldap', 11, NULL, 'user-ldap', b'0', b'0', b'1', 'user:import', NULL, NULL, NULL, NULL); +BEGIN; +INSERT INTO `system_parameter` VALUES ('ldap.dn', NULL, 'text', 2); +INSERT INTO `system_parameter` VALUES ('ldap.mapping', NULL, 'text', 6); +INSERT INTO `system_parameter` VALUES ('ldap.open', NULL, 'text', 7); +INSERT INTO `system_parameter` VALUES ('ldap.ou', NULL, 'text', 4); +INSERT INTO `system_parameter` VALUES ('ldap.password', NULL, 'password', 3); +INSERT INTO `system_parameter` VALUES ('ldap.url', NULL, 'text', 1); +COMMIT; + diff --git a/frontend/src/views/login/index.vue b/frontend/src/views/login/index.vue index eadb585c48..e2135981d0 100644 --- a/frontend/src/views/login/index.vue +++ b/frontend/src/views/login/index.vue @@ -15,8 +15,8 @@ {{ $t('login.welcome') + (uiInfo && uiInfo['ui.title'] && uiInfo['ui.title'].paramValue || ' DataEase') }}
- - + + 普通登录 LDAP