fix(auth): adjust 2FA verification log formatting for consistency

This commit is contained in:
Mathis HERRIOT
2026-01-20 09:57:59 +01:00
parent 28caf92f9a
commit 9a1cdb05a4

View File

@@ -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");
}