Merge branch 'development' of ssh://git.eigen.co.id:2222/eigen/pos-be into development
commit
be24ac02f7
|
@ -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.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue