rwadurian/backend/services/auth-service/src
hailin 74f061cfeb fix(auth-service): 修复支付密码DTO缺少class-validator装饰器导致请求被ValidationPipe拒绝
根因:ValidationPipe配置了whitelist+forbidNonWhitelisted,但DTO类的属性
没有任何class-validator装饰器,导致所有请求体属性被当作非白名单属性直接
返回Bad Request,请求根本未到达业务逻辑层。

修复:为SetTradePasswordDto、ChangeTradePasswordDto、VerifyTradePasswordDto
添加@IsString()和@IsNotEmpty()装饰器。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 09:39:14 -08:00
..
api fix(auth-service): 修复支付密码DTO缺少class-validator装饰器导致请求被ValidationPipe拒绝 2026-02-26 09:39:14 -08:00
application feat(trade-password): 实现卖出交易的支付密码验证功能 2026-02-05 18:12:39 -08:00
domain fix(auth): 修复设置支付密码时报错的问题 2026-02-26 09:01:33 -08:00
infrastructure feat(trade-password): 实现卖出交易的支付密码验证功能 2026-02-05 18:12:39 -08:00
shared feat(auth-service): 添加用户认证服务2.0 2026-01-10 18:50:59 -08:00
app.module.ts fix(trading,auth): add parent .env path for shared JWT_SECRET 2026-01-15 06:57:57 -08:00
main.ts feat(auth-service): 添加用户认证服务2.0 2026-01-10 18:50:59 -08:00