Loading backend/src/auth/admin/authAdmin.service.ts +3 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,9 @@ export class AuthAdminService { }; const hashedPwd = await this.encryptionService.hashPassword(createAdminDto.password); createAdminDto.password = hashedPwd; if (await this.adminService.adminExists(createAdminDto.email)) { throw new HttpException('Admin already exists', HttpStatus.UNAUTHORIZED); } await this.adminService.create(createAdminDto); const adminSigninResDto: AdminSigninResDto = await this.signIn(loginAdminDto); Loading Loading
backend/src/auth/admin/authAdmin.service.ts +3 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,9 @@ export class AuthAdminService { }; const hashedPwd = await this.encryptionService.hashPassword(createAdminDto.password); createAdminDto.password = hashedPwd; if (await this.adminService.adminExists(createAdminDto.email)) { throw new HttpException('Admin already exists', HttpStatus.UNAUTHORIZED); } await this.adminService.create(createAdminDto); const adminSigninResDto: AdminSigninResDto = await this.signIn(loginAdminDto); Loading