From 1e692b0b4c6ba031bfe7d88dd15fabc74741611e Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Thu, 26 Jun 2025 18:04:55 +0700 Subject: [PATCH] feat: change message otp credential not match --- .../infrastructure/guards/otp-auth.guard.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/configuration/otp-verification/infrastructure/guards/otp-auth.guard.ts b/src/modules/configuration/otp-verification/infrastructure/guards/otp-auth.guard.ts index 1af5e2a..4b2c0da 100644 --- a/src/modules/configuration/otp-verification/infrastructure/guards/otp-auth.guard.ts +++ b/src/modules/configuration/otp-verification/infrastructure/guards/otp-auth.guard.ts @@ -54,10 +54,12 @@ export class OtpAuthGuard implements CanActivate { request.user = userLogin; return true; } else { - throw new UnprocessableEntityException('Invalid OTP credentials'); + throw new UnprocessableEntityException( + 'Invalid username or password.', + ); } } catch (err) { - throw new UnprocessableEntityException('Invalid OTP encoding'); + throw new UnprocessableEntityException('Invalid username or password.'); } }