Merge branch 'development' of ssh://git.eigen.co.id:2222/eigen/pos-be into development

pull/142/head 1.6.26-alpha.6
shancheas 2025-06-26 18:14:37 +07:00
commit be24ac02f7
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.');
}
}