feat: change message otp credential not match #162

Merged
firmanr merged 1 commits from feat/otp-cancel into development 2025-06-26 18:05:32 +07:00
1 changed files with 4 additions and 2 deletions

View File

@ -54,10 +54,12 @@ export class OtpAuthGuard implements CanActivate {
request.user = userLogin; request.user = userLogin;
return true; return true;
} else { } else {
throw new UnprocessableEntityException('Invalid OTP credentials'); throw new UnprocessableEntityException(
'Invalid username or password.',
);
} }
} catch (err) { } catch (err) {
throw new UnprocessableEntityException('Invalid OTP encoding'); throw new UnprocessableEntityException('Invalid username or password.');
} }
} }