Skip to content

Commit 5a192a2

Browse files
committed
🐛 fix auth properties
1 parent 5947f1e commit 5a192a2

File tree

5 files changed

+0
-59
lines changed

5 files changed

+0
-59
lines changed

langchat-common/langchat-common-core/src/main/java/cn/tycoding/langchat/common/core/CommonAutoConfiguration.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package cn.tycoding.langchat.common.core;
1818

1919
import cn.tycoding.langchat.common.core.properties.AuthProps;
20-
import cn.tycoding.langchat.common.core.properties.EmailProps;
2120
import org.springframework.boot.context.properties.EnableConfigurationProperties;
2221
import org.springframework.context.annotation.Configuration;
2322

@@ -28,7 +27,6 @@
2827
@Configuration
2928
@EnableConfigurationProperties({
3029
AuthProps.class,
31-
EmailProps.class,
3230
})
3331
public class CommonAutoConfiguration {
3432

langchat-common/langchat-common-core/src/main/java/cn/tycoding/langchat/common/core/properties/AuthProps.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ public class AuthProps {
3535
*/
3636
private List<String> skipUrl = new ArrayList();
3737

38-
private Integer chatLimit = 10;
39-
private Boolean aigcRegUserIsPerms = true;
40-
41-
private EmailProps email = new EmailProps();
42-
4338
/**
4439
* salt
4540
*/

langchat-common/langchat-common-core/src/main/java/cn/tycoding/langchat/common/core/properties/EmailProps.java

Lines changed: 0 additions & 34 deletions
This file was deleted.

langchat-server/src/main/resources/application-dev.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,5 @@ langchat:
4242
base-path: langchat/ # 基础路径
4343
path-patterns: /static/** # 访问路径(默认本地target目录),注意:如果使用本地nginx容器,此路径要修改为nginx存储路径
4444
storage-path: ./static/ # 存储路径(默认本地target目录),注意:如果使用本地nginx容器,此路径要修改为nginx存储路径
45-
auth:
46-
# client端新注册的用户是否开启操作权限,如果为false,client端新用户默认只有页面预览权限没有操作权限
47-
# 需要在server端给指定用户授权后才能正常使用
48-
aigc-reg-user-is-perms: true
49-
email:
50-
host: smtp.qq.com
51-
port: 465
52-
from: <EMAIL>
53-
pass: <PASS>
5445

5546

langchat-server/src/main/resources/application-prd.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,3 @@ langchat:
4242
base-path: langchat/ # 基础路径
4343
path-patterns: /Users/tycoding/data/software/nginx/ # 访问路径
4444
storage-path: /Users/tycoding/data/software/nginx/ # 存储路径
45-
auth:
46-
# client端新注册的用户是否开启操作权限,如果为false,client端新用户默认只有页面预览权限没有操作权限
47-
# 需要在server端给指定用户授权后才能正常使用
48-
aigc-reg-user-is-perms: true
49-
email:
50-
host: smtp.qq.com
51-
port: 465
52-
from: <EMAIL>
53-
pass: <PASS>

0 commit comments

Comments
 (0)