fix(api): use user.id instead of user.sub in changePassword controller
Tessera CI/CD / Lint & Type Check (push) Successful in 41s
Tessera CI/CD / Tests (push) Successful in 39s
Tessera CI/CD / Build & Publish Images (push) Successful in 21s

JWT strategy maps payload.sub to user.id — user.sub was always undefined,
causing Prisma findUnique to fail with id: undefined validation error.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-29 16:02:38 +02:00
parent 46ba8868c7
commit b28ee472c5
+1 -1
View File
@@ -99,7 +99,7 @@ export class AuthController {
@Body() dto: ChangePasswordDto,
) {
await this.authService.changePassword(
user.sub,
user.id,
dto.currentPassword,
dto.newPassword,
);