chore: ws
This commit is contained in:
@@ -24,6 +24,8 @@ export class AuthService {
|
|||||||
|
|
||||||
const user = await this.checkUserLoginCredentialWithEmail(email, password);
|
const user = await this.checkUserLoginCredentialWithEmail(email, password);
|
||||||
|
|
||||||
|
if (!user.isActive) throw new BadRequestException(AuthMessage.USER_ACCOUNT_INACTIVE);
|
||||||
|
|
||||||
const tokens = await this.tokensService.generateTokens(user);
|
const tokens = await this.tokensService.generateTokens(user);
|
||||||
|
|
||||||
await this.notificationQueue.addLoginNotification(user.id, {
|
await this.notificationQueue.addLoginNotification(user.id, {
|
||||||
|
|||||||
Reference in New Issue
Block a user