Merge pull request 'feat: change message otp credential not match' (#162) from feat/otp-cancel into development
Reviewed-on: #162pull/142/head^2
commit
0c65754b2d
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue