From 9a1cdb05a44c2166e8eec563137dcc908a25255d Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Tue, 20 Jan 2026 09:57:59 +0100 Subject: [PATCH] fix(auth): adjust 2FA verification log formatting for consistency --- backend/src/auth/auth.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/auth/auth.service.ts b/backend/src/auth/auth.service.ts index e5adba1..f564272 100644 --- a/backend/src/auth/auth.service.ts +++ b/backend/src/auth/auth.service.ts @@ -169,7 +169,9 @@ export class AuthService { const isValid = authenticator.verify({ token, secret }); if (!isValid) { - this.logger.warn(`2FA verification failed for user ${userId}: invalid token`); + this.logger.warn( + `2FA verification failed for user ${userId}: invalid token`, + ); throw new UnauthorizedException("Invalid 2FA token"); }