登录注册、手机号、邮箱

This commit is contained in:
2025-11-03 13:37:55 +08:00
parent 16754b527e
commit 35aee59178
26 changed files with 4292 additions and 163 deletions

View File

@@ -50,6 +50,39 @@ spring:
# 关闭超时时间
shutdown-timeout: 100ms
# 邮件配置
mail:
host: smtp.qq.com
port: 587
username: 3223905473@qq.com
password: xmdmxvtjumxocicc
default-encoding: UTF-8
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
# 短信服务配置(支持多种服务商)
sms:
# 是否启用短信服务true: 真实发送, false: 模拟模式)
# 开发环境建议设置为 false避免浪费短信费用
enabled: false
# 短信服务商aliyun: 阿里云, tencent: 腾讯云)
provider: aliyun
# AccessKey ID从服务商控制台获取
access-key-id: LTAI5t68do3qVXx5Rufugt3X
# AccessKey Secret从服务商控制台获取
access-key-secret: 2vD9ToIff49Vph4JQXsn0Cy8nXQfzA
# 短信签名名称(需要在服务商平台申请)
sign-name: 星洋智慧
# 验证码模板CODE需要在服务商平台申请
template-code: SMS_491985030
# 区域ID阿里云默认cn-hangzhou腾讯云默认ap-guangzhou
region-id: cn-hangzhou
endpoint: dysmsapi.aliyuncs.com
# 认证配置
school-news:
auth:
@@ -65,7 +98,10 @@ school-news:
white-list:
- "/auth/login"
- "/auth/logout"
- "/auth/register"
- "/auth/captcha"
- "/auth/send-sms-code"
- "/auth/send-email-code"
- "/auth/health"
- "/actuator/**"
- "/swagger-ui/**"