Loading backend/src/auth/user/authUserservice.ts +9 −1 Original line number Diff line number Diff line import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { BadRequestException, HttpException, HttpStatus, Injectable, } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { EncryptionService } from '../encryption/encryption.service'; import { JwtConstants } from 'src/constants/jwt.constants'; Loading @@ -25,6 +30,9 @@ export class AuthUserService { createAdminDto.password, ); createAdminDto.password = hashedPwd; if (this.userService.userExists(createAdminDto.email)) { throw new BadRequestException('User already exists'); } await this.userService.create(createAdminDto); const adminSigninResDto: UserSigninResDto = Loading Loading
backend/src/auth/user/authUserservice.ts +9 −1 Original line number Diff line number Diff line import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { BadRequestException, HttpException, HttpStatus, Injectable, } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; import { EncryptionService } from '../encryption/encryption.service'; import { JwtConstants } from 'src/constants/jwt.constants'; Loading @@ -25,6 +30,9 @@ export class AuthUserService { createAdminDto.password, ); createAdminDto.password = hashedPwd; if (this.userService.userExists(createAdminDto.email)) { throw new BadRequestException('User already exists'); } await this.userService.create(createAdminDto); const adminSigninResDto: UserSigninResDto = Loading