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.'); } }