Skip to content

Commit e6105af

Browse files
gadfly3173colorful3
authored andcommitted
fix: aes192 to 256
1 parent 9dfbb84 commit e6105af

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/main/java/io/github/talelin/latticy/common/configuration/LoginCaptchaProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class LoginCaptchaProperties {
1717
/**
1818
* aes 密钥
1919
*/
20-
private String secret;
20+
private String secret = CaptchaUtil.getRandomString(32);
2121
/**
2222
* aes 偏移量
2323
*/

src/main/resources/application-dev.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
server:
44
# 服务端口
5-
port: 5000
5+
port: 3000
66

77

88
spring:
99
# 数据源配置,请修改为你项目的实际配置
1010
datasource:
1111
username: "root"
12-
password: "123456"
12+
password: "yishiyile"
1313
driver-class-name: com.mysql.cj.jdbc.Driver
1414
url: jdbc:mysql://localhost:3306/lin-cms?useSSL=false&serverTimezone=UTC&characterEncoding=UTF8
1515

@@ -20,8 +20,8 @@ auth:
2020

2121
# 开启登录要求验证码
2222
login-captcha:
23-
enabled: false
24-
secret: "ywdh012379y983hd938j091d"
23+
enabled: true
24+
secret: "m49CPM5ak@MDXTzbbT_ZEyMM3KBsBn!h"
2525

2626
# 开启http请求日志记录
2727
request-log:

src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ auth:
1919
# 开启登录要求验证码
2020
login-captcha:
2121
enabled: false
22-
secret: "ywdh012379y983hd938j091d"
22+
secret: "m49CPM5ak@MDXTzbbT_ZEyMM3KBsBn!h"
2323

2424
# 开启请求日志记录
2525
request-log:

0 commit comments

Comments
 (0)