Merge pull request 'feat: change message otp credential not match' (#162) from feat/otp-cancel into development

Reviewed-on: #162
pull/142/head^2
firmanr 2025-06-26 18:05:32 +07:00
commit 0c65754b2d
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.');
}
}