feat: change message otp credential not match

pull/162/head
Firman Ramdhani 2025-06-26 18:04:55 +07:00
parent 99889f425a
commit 1e692b0b4c
1 changed files with 4 additions and 2 deletions

View File

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